mirror of https://github.com/berdav/snappy-fox
Snappy fuzzer
This commit is contained in:
parent
e845976471
commit
dbc7152636
|
@ -421,6 +421,9 @@ int main(int argc, char **argv) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __AFL_LOOP
|
||||||
|
while (__AFL_LOOP(1000)) {
|
||||||
|
#endif
|
||||||
in = open_read_file(argv[1]);
|
in = open_read_file(argv[1]);
|
||||||
if (in == NULL) {
|
if (in == NULL) {
|
||||||
perror("fopen");
|
perror("fopen");
|
||||||
|
@ -448,6 +451,9 @@ close_in:
|
||||||
perror("close");
|
perror("close");
|
||||||
exit_point:
|
exit_point:
|
||||||
prdebug("Exiting %d\n", ret);
|
prdebug("Exiting %d\n", ret);
|
||||||
|
#ifdef __AFL_LOOP
|
||||||
|
}
|
||||||
|
#endif
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue