mirror of https://github.com/berdav/snappy-fox
snappy-fox afl workaround
This commit is contained in:
parent
9d56e5c281
commit
b63d124680
|
@ -692,7 +692,7 @@ int main(int argc, char **argv) {
|
|||
}
|
||||
|
||||
#ifdef __AFL_LOOP
|
||||
while (__AFL_LOOP(1000)) {
|
||||
while (__AFL_LOOP(UINT32_MAX)) {
|
||||
#endif
|
||||
in = open_read_file(argv[optind]);
|
||||
if (in == NULL) {
|
||||
|
@ -701,6 +701,10 @@ int main(int argc, char **argv) {
|
|||
goto exit_point;
|
||||
}
|
||||
|
||||
#ifdef __AFL_LOOP
|
||||
ftell(in);
|
||||
#endif
|
||||
|
||||
out = open_write_file(argv[optind + 1]);
|
||||
if (out == NULL) {
|
||||
perror("fopen write");
|
||||
|
|
Loading…
Reference in New Issue