* Allow to omit the right-hand side of the seed range, for indefinite
fuzzing attempts.
This commit is contained in:
parent
768baba0bc
commit
6dccd9a9e5
@ -262,7 +262,9 @@ to use simple utilities such as \fBcat\fR or \fBcp\fR to generate a file that
|
||||
causes the target application to crash.
|
||||
|
||||
If a range is specified, \fBzzuf\fR will run the application several times,
|
||||
each time with a different seed, and report the behaviour of each run.
|
||||
each time with a different seed, and report the behaviour of each run. If the
|
||||
\(oq:\(cq character is used but the second part of the range is omitted,
|
||||
\fBzzuf\fR will increment the seed value indefinitely.
|
||||
.TP
|
||||
\fB\-S\fR, \fB\-\-signal\fR
|
||||
Prevent children from installing signal handlers for signals that usually
|
||||
|
||||
@ -313,7 +313,9 @@ int main(int argc, char *argv[])
|
||||
case 's': /* --seed */
|
||||
tmp = strchr(myoptarg, ':');
|
||||
opts->seed = atol(myoptarg);
|
||||
opts->endseed = tmp ? (uint32_t)atoi(tmp + 1) : opts->seed + 1;
|
||||
opts->endseed = tmp ? tmp[1] ? (uint32_t)atoi(tmp + 1)
|
||||
: (uint32_t)-1UL
|
||||
: opts->seed + 1;
|
||||
break;
|
||||
case 'S': /* --signal */
|
||||
setenv("ZZUF_SIGNAL", "1", 1);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user