diff options
author | vanhauser-thc <vh@thc.org> | 2021-03-05 14:58:37 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-03-05 14:58:37 +0100 |
commit | 41ad23041b98917e9c38873f5b296ab98e59e460 (patch) | |
tree | 8184897ffa01b6f2e446c9bad06593253a3528d5 /instrumentation/afl-compiler-rt.o.c | |
parent | 3e5ac0af5237bbd01abc30538add248ee0bf1735 (diff) | |
download | afl++-41ad23041b98917e9c38873f5b296ab98e59e460.tar.gz |
remove warnings
Diffstat (limited to 'instrumentation/afl-compiler-rt.o.c')
-rw-r--r-- | instrumentation/afl-compiler-rt.o.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c index 664c942d..1d8fd757 100644 --- a/instrumentation/afl-compiler-rt.o.c +++ b/instrumentation/afl-compiler-rt.o.c @@ -1170,7 +1170,7 @@ __attribute__((constructor(1))) void __afl_auto_second(void) { } -} +} // ptr memleak report is a false positive /* preset __afl_area_ptr #1 - at constructor level 0 global variables have not been set */ @@ -1181,9 +1181,7 @@ __attribute__((constructor(0))) void __afl_auto_first(void) { __afl_already_initialized_first = 1; if (getenv("AFL_DISABLE_LLVM_INSTRUMENTATION")) return; - u8 *ptr; - - ptr = (u8 *)malloc(MAP_INITIAL_SIZE); + u8 *ptr = (u8 *)malloc(MAP_INITIAL_SIZE); if (ptr && (ssize_t)ptr != -1) { @@ -1192,7 +1190,7 @@ __attribute__((constructor(0))) void __afl_auto_first(void) { } -} +} // ptr memleak report is a false positive /* The following stuff deals with supporting -fsanitize-coverage=trace-pc-guard. It remains non-operational in the traditional, plugin-backed LLVM mode. |