Snappy fuzzer

This commit is contained in:
Davide Berardi 2021-01-24 12:28:41 +01:00
parent e845976471
commit dbc7152636
1 changed files with 6 additions and 0 deletions

View File

@ -421,6 +421,9 @@ int main(int argc, char **argv) {
return 1;
}
#ifdef __AFL_LOOP
while (__AFL_LOOP(1000)) {
#endif
in = open_read_file(argv[1]);
if (in == NULL) {
perror("fopen");
@ -448,6 +451,9 @@ close_in:
perror("close");
exit_point:
prdebug("Exiting %d\n", ret);
#ifdef __AFL_LOOP
}
#endif
return ret;
}