Changeset 1720 for zzuf/trunk/src/zzuf.c
- Timestamp:
- Jan 27, 2007, 8:05:46 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zzuf/trunk/src/zzuf.c
r1718 r1720 131 131 { 132 132 # if defined HAVE_REGEX_H 133 # define OPTSTR "Ab:B:cC:dD:E: F:iI:mM:nP:qr:R:s:ST:vxhV"133 # define OPTSTR "Ab:B:cC:dD:E:f:F:iI:mM:nP:qr:R:s:ST:vxhV" 134 134 # else 135 # define OPTSTR "Ab:B:C:dD: F:imM:nP:qr:R:s:ST:vxhV"135 # define OPTSTR "Ab:B:C:dD:f:F:imM:nP:qr:R:s:ST:vxhV" 136 136 # endif 137 137 # if defined HAVE_GETOPT_LONG … … 153 153 { "exclude", 1, NULL, 'E' }, 154 154 #endif 155 { "fuzzing", 1, NULL, 'f' }, 155 156 { "max-forks", 1, NULL, 'F' }, 156 157 { "stdin", 0, NULL, 'i' }, … … 220 221 break; 221 222 #endif 223 case 'f': /* --fuzzing */ 224 opts->fuzzing = optarg; 225 break; 222 226 case 'F': /* --max-forks */ 223 227 opts->maxchild = atoi(optarg) > 1 ? atoi(optarg) : 1; … … 344 348 #endif 345 349 350 if(opts->fuzzing) 351 setenv("ZZUF_FUZZING", opts->fuzzing, 1); 346 352 if(opts->bytes) 347 353 setenv("ZZUF_BYTES", opts->bytes, 1); … … 394 400 ctx = _zz_md5_init(); 395 401 402 if(opts->fuzzing) 403 _zz_fuzzing(opts->fuzzing); 396 404 if(opts->bytes) 397 405 _zz_bytes(opts->bytes); … … 1049 1057 printf("Usage: zzuf [-AdimnqSvx] [-s seed|-s start:stop] [-r ratio|-r min:max]\n"); 1050 1058 #endif 1051 printf(" [-D delay] [-F forks] [-C crashes] [-B bytes] [-T seconds]\n");1052 printf(" 1053 #if defined HAVE_REGEX_H 1054 printf(" 1059 printf(" [-f fuzzing] [-D delay] [-F forks] [-C crashes] [-B bytes]\n"); 1060 printf(" [-T seconds] [-M bytes] [-b ranges] [-P protect] [-R refuse]\n"); 1061 #if defined HAVE_REGEX_H 1062 printf(" [-I include] [-E exclude] [PROGRAM [--] [ARGS]...]\n"); 1055 1063 #else 1056 printf(" 1064 printf(" [PROGRAM [--] [ARGS]...]\n"); 1057 1065 #endif 1058 1066 # if defined HAVE_GETOPT_LONG … … 1079 1087 printf(" -E, --exclude <regex> do not fuzz files matching <regex>\n"); 1080 1088 #endif 1089 printf(" -f, --fuzzing <mode> use fuzzing mode <mode> ([xor] set unset)\n"); 1081 1090 printf(" -F, --max-forks <n> number of concurrent children (default 1)\n"); 1082 1091 printf(" -i, --stdin fuzz standard input\n"); … … 1115 1124 printf(" -E <regex> do not fuzz files matching <regex>\n"); 1116 1125 #endif 1126 printf(" -f <mode> use fuzzing mode <mode>\n"); 1117 1127 printf(" -F <n> number of concurrent forks (default 1)\n"); 1118 1128 printf(" -i fuzz standard input\n");
Note: See TracChangeset
for help on using the changeset viewer.