- Timestamp:
- Jul 15, 2008, 10:15:35 PM (14 years ago)
- Location:
- zzuf/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
zzuf/trunk/doc/zzuf.1
r2353 r2521 160 160 Specify the maximum amount of memory, in mebibytes (1 MiB = 1,048,576 bytes), 161 161 that children are allowed to allocate. This is useful to detect infinite loops 162 that eat up a lot of memory. The value should be set reasonably high so as not 163 to interfer with normal program operation. 162 that eat up a lot of memory. 163 164 The value should be set reasonably high so as not to interfer with normal 165 program operation. By default, it is set to 1024 MiB in order to avoid 166 accidental excessive swapping. To disable the limitation, set the maximum 167 memory usage to -1 instead. 164 168 165 169 \fBzzuf\fR uses the \fBsetrlimit\fR() call to set memory usage limitations and -
zzuf/trunk/src/libzzuf.h
r2272 r2521 32 32 #define MAX_RATIO 5.0 33 33 34 /* The default maximum memory usage is 1024 MiB. If this value is not set, 35 * zzuf may bring a machine down to its knees because of I/O. */ 36 #define DEFAULT_MEM 1024 37 34 38 struct fuzz 35 39 { -
zzuf/trunk/src/opts.c
r1858 r2521 44 44 opts->checkexit = 0; 45 45 opts->verbose = 0; 46 opts->maxmem = -1;46 opts->maxmem = DEFAULT_MEM; 47 47 opts->maxtime = -1; 48 48 opts->maxcpu = -1; -
zzuf/trunk/src/zzuf.c
r2461 r2521 1208 1208 printf(" -m, --md5 compute the output's MD5 hash\n"); 1209 1209 #if defined HAVE_SETRLIMIT && defined ZZUF_RLIMIT_MEM 1210 printf(" -M, --max-memory <n> maximum child virtual memory size in MB\n");1210 printf(" -M, --max-memory <n> maximum child virtual memory in MiB (default %u)\n", DEFAULT_MEM); 1211 1211 #endif 1212 1212 printf(" -n, --network fuzz network input\n");
Note: See TracChangeset
for help on using the changeset viewer.