Changeset 2345 for zzuf


Ignore:
Timestamp:
May 19, 2008, 1:25:05 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Change -M to mean mebibytes instead of megabytes, because I'm a fucking pedant.
Location:
zzuf/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/doc/zzuf.1

    r2344 r2345  
    77       [\fB\-f\fR \fIfuzzing\fR] [\fB\-D\fR \fIdelay\fR] [\fB\-j\fR \fIjobs\fR] [\fB\-C\fR \fIcrashes\fR] [\fB\-B\fR \fIbytes\fR]
    88.br
    9        [\fB\-t\fR \fIseconds\fR] [\fB\-T\fR \fIseconds\fR] [\fB\-M\fR \fImegabytes\fR] [\fB\-b\fR \fIranges\fR] [\fB\-p\fR \fIports\fR]
     9       [\fB\-t\fR \fIseconds\fR] [\fB\-T\fR \fIseconds\fR] [\fB\-M\fR \fImebibytes\fR] [\fB\-b\fR \fIranges\fR] [\fB\-p\fR \fIports\fR]
    1010.br
    1111       [\fB\-P\fR \fIprotect\fR] [\fB\-R\fR \fIrefuse\fR] [\fB\-l\fR \fIlist\fR] [\fB\-I\fR \fIinclude\fR] [\fB\-E\fR \fIexclude\fR]
     
    157157untouched.
    158158.TP
    159 \fB\-M\fR, \fB\-\-max\-memory\fR=\fImegabytes\fR
    160 Specify the maximum amount of memory, in megabytes, that children are allowed
    161 to allocate. This is useful to detect infinite loops that eat up a lot of
    162 memory. The value should set reasonably high so as not to interfer with normal
    163 program operation.
     159\fB\-M\fR, \fB\-\-max\-memory\fR=\fImebibytes\fR
     160Specify the maximum amount of memory, in mebibytes (1 MiB = 1,048,576 bytes),
     161that children are allowed to allocate. This is useful to detect infinite loops
     162that eat up a lot of memory. The value should be set reasonably high so as not
     163to interfer with normal program operation.
    164164
    165165\fBzzuf\fR uses the \fBsetrlimit\fR() call to set memory usage limitations and
  • zzuf/trunk/src/libzzuf.c

    r2336 r2345  
    7777/**
    7878 * If set to a positive value, this value will indicate the maximum number
    79  * of megabytes that the called application will be allowed to allocate. Its
    80  * value is set by the ZZUF_MEMORY environment variable.
     79 * of mebibytes (1 MiB = 1,048,576 bytes) that the called application will be
     80 * allowed to allocate. Its value is set by the ZZUF_MEMORY environment
     81 * variable.
    8182 */
    8283int   _zz_memory   = 0;
  • zzuf/trunk/src/zzuf.c

    r2344 r2345  
    11701170#endif
    11711171#if defined HAVE_SETRLIMIT && defined ZZUF_RLIMIT_MEM
    1172     printf(                                        "[-M megabytes] ");
     1172    printf(                                        "[-M mebibytes] ");
    11731173#endif
    11741174    printf(                                                       "[-b ranges] [-p ports]\n");
Note: See TracChangeset for help on using the changeset viewer.