fix explanation how to obtain the map size

This commit is contained in:
vanhauser-thc
2024-10-28 09:52:51 +01:00
parent 009f663e2c
commit 577b286508
3 changed files with 10 additions and 3 deletions

View File

@ -39,6 +39,7 @@
AFL_LLVM_INSTRUMENT=CLASSIC AFL_LLVM_INSTRUMENT=CLASSIC
- new compile time variable: `AFL_OPT_LEVEL` to set a specific optimization - new compile time variable: `AFL_OPT_LEVEL` to set a specific optimization
level, default is `3` level, default is `3`
- correctly explain how to get the correct map size for large targets
- code formatting updated to llvm 18 - code formatting updated to llvm 18
- improved custom_mutators/aflpp/standalone/aflpp-standalone - improved custom_mutators/aflpp/standalone/aflpp-standalone
- added custom_mutators/autotokens/standalone/autotokens-standalone - added custom_mutators/autotokens/standalone/autotokens-standalone

View File

@ -367,6 +367,12 @@ static void __afl_map_shm(void) {
} }
if (__afl_debug) {
fprintf(stderr, "DEBUG: AFL_MAP_SIZE=%u\n", __afl_map_size);
}
if (__afl_final_loc > MAP_SIZE) { if (__afl_final_loc > MAP_SIZE) {
char *ptr; char *ptr;

View File

@ -495,9 +495,9 @@ static void report_error_and_exit(int error) {
FATAL( FATAL(
"AFL_MAP_SIZE is not set and fuzzing target reports that the " "AFL_MAP_SIZE is not set and fuzzing target reports that the "
"required size is very large. Solution: Run the fuzzing target " "required size is very large. Solution: Run the fuzzing target "
"stand-alone with the environment variable AFL_DEBUG=1 set and set " "stand-alone with the environment variable AFL_DUMP_MAP_SIZE=1 set "
"the value for __afl_final_loc in the AFL_MAP_SIZE environment " "the displayed value in the AFL_MAP_SIZE environment variable for "
"variable for afl-fuzz."); "afl-fuzz.");
break; break;
case FS_ERROR_MAP_ADDR: case FS_ERROR_MAP_ADDR:
FATAL( FATAL(