Ignore:
Timestamp:
Apr 19, 2010, 10:51:58 PM (8 years ago)
Author:
Sam Hocevar
Message:

New operating mode "copy". It uses temporary files instead of preloading
libzzuf into the process.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/opts.c

    r4264 r4393  
    3333void _zz_opts_init(struct opts *opts)
    3434{
     35    opts->opmode = OPMODE_PRELOAD;
    3536    opts->fuzzing = opts->bytes = opts->list = opts->ports = NULL;
    3637    opts->allow = NULL;
     
    5253    opts->lastlaunch = 0;
    5354
    54     opts->newargv = NULL;
    5555    opts->maxchild = 1;
    5656    opts->nchild = 0;
     
    6262void _zz_opts_fini(struct opts *opts)
    6363{
     64    int i;
     65
    6466    if(opts->child)
     67    {
     68        for(i = 0; i < opts->maxchild; i++)
     69            if (opts->child[i].newargv)
     70                free(opts->child[i].newargv);
    6571        free(opts->child);
    66     if(opts->newargv)
    67         free(opts->newargv);
     72    }
    6873}
    6974
Note: See TracChangeset for help on using the changeset viewer.