Changeset 2343 for zzuf/trunk/src


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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.