Ignore:
Timestamp:
Jan 27, 2007, 4:13:34 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • Better ungetc() implementation. Now we don't need to care about the fuzzing method.
File:
1 edited

Legend:

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

    r1705 r1719  
    153153                    goto range_ok;
    154154
    155             continue; /* Not in a range */
     155            continue; /* Not in one of the ranges, skip byte */
    156156
    157157        range_ok:
     
    168168            aligned_buf[j] = byte;
    169169        }
     170    }
     171
     172    /* Handle ungetc() */
     173    if(fuzz->uflag)
     174    {
     175        fuzz->uflag = 0;
     176        if(fuzz->upos == pos)
     177            buf[0] = fuzz->uchar;
    170178    }
    171179}
Note: See TracChangeset for help on using the changeset viewer.