Changeset 2343 for zzuf/trunk


Ignore:
Timestamp:
May 19, 2008, 1:24:56 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Allow to omit the right-hand side of the seed range, for indefinite fuzzing attempts.
Location:
zzuf/trunk
Files:
2 edited

Legend:

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

    r2342 r2343  
    263263
    264264If a range is specified, \fBzzuf\fR will run the application several times,
    265 each time with a different seed, and report the behaviour of each run.
     265each time with a different seed, and report the behaviour of each run. If the
     266\(oq:\(cq character is used but the second part of the range is omitted,
     267\fBzzuf\fR will increment the seed value indefinitely.
    266268.TP
    267269\fB\-S\fR, \fB\-\-signal\fR
  • zzuf/trunk/src/zzuf.c

    r2341 r2343  
    314314            tmp = strchr(myoptarg, ':');
    315315            opts->seed = atol(myoptarg);
    316             opts->endseed = tmp ? (uint32_t)atoi(tmp + 1) : opts->seed + 1;
     316            opts->endseed = tmp ? tmp[1] ? (uint32_t)atoi(tmp + 1)
     317                                         : (uint32_t)-1UL
     318                                : opts->seed + 1;
    317319            break;
    318320        case 'S': /* --signal */
Note: See TracChangeset for help on using the changeset viewer.