mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-17 20:28:08 +00:00
changes
This commit is contained in:
@ -34,6 +34,9 @@ extern "C" {
|
||||
#ifndef AUTOTOKENS_SPLICE_DISABLE
|
||||
#define AUTOTOKENS_SPLICE_DISABLE 0
|
||||
#endif
|
||||
#ifndef AFL_TXT_MAX_LEN
|
||||
#define AFL_TXT_MAX_LEN 65535
|
||||
#endif
|
||||
|
||||
#if AUTOTOKENS_SPLICE_MIN >= AUTOTOKENS_SIZE_MIN
|
||||
#error SPLICE_MIN must be lower than SIZE_MIN
|
||||
@ -571,6 +574,15 @@ extern "C" unsigned char afl_custom_queue_get(void *data,
|
||||
DEBUGF(stderr, "Too short (%lu) %s\n", len, filename);
|
||||
return 1;
|
||||
|
||||
} else
|
||||
if (len > AFL_TXT_MAX_LEN) {
|
||||
|
||||
fclose(fp);
|
||||
file_mapping[fn] = structure; // NULL ptr so we don't read the file again
|
||||
s = NULL;
|
||||
DEBUGF(stderr, "Too long (%lu) %s\n", len, filename);
|
||||
return 1;
|
||||
|
||||
}
|
||||
|
||||
string input;
|
||||
|
Reference in New Issue
Block a user