snappy-fox afl workaround

This commit is contained in:
Davide Berardi 2024-02-19 12:44:48 +01:00
parent 9d56e5c281
commit b63d124680
1 changed files with 5 additions and 1 deletions

View File

@ -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");