Skip to content

Commit 8c9b6bf

Browse files
Merge pull request #2502 from TERESH1/fix_AFL_DUMP_MAP_SIZE_for_LLVM_CLASSIC
check AFL_DUMP_MAP_SIZE for LLVM CLASSIC
2 parents 5371f76 + 70b1e98 commit 8c9b6bf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

instrumentation/afl-compiler-rt.o.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,14 @@ static void __afl_map_shm(void) {
416416

417417
}
418418

419+
if (getenv("AFL_DUMP_MAP_SIZE")) {
420+
421+
printf("%u\n", __afl_map_size);
422+
fflush(stdout);
423+
exit(-1);
424+
425+
}
426+
419427
if (__afl_sharedmem_fuzzing && (!id_str || !getenv(SHM_FUZZ_ENV_VAR) ||
420428
fcntl(FORKSRV_FD, F_GETFD) == -1 ||
421429
fcntl(FORKSRV_FD + 1, F_GETFD) == -1)) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy