aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-03-10 15:44:54 +0100
committervanhauser-thc <vh@thc.org>2021-03-10 15:44:54 +0100
commit071edb1a2ddcf787680ca5096ddc1d6e28addd0b (patch)
tree5066235cea9d80c5996ab44fa2f6eaddb5656f43
parent7f36290703fafed10c96223cb2231c2cbc013955 (diff)
downloadafl++-071edb1a2ddcf787680ca5096ddc1d6e28addd0b.tar.gz
brackets make dominik happy
-rw-r--r--instrumentation/afl-compiler-rt.o.c23
1 files changed, 18 insertions, 5 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c
index 71ef6c48..cca38cd0 100644
--- a/instrumentation/afl-compiler-rt.o.c
+++ b/instrumentation/afl-compiler-rt.o.c
@@ -315,7 +315,8 @@ static void __afl_map_shm(void) {
early-stage __afl_area_initial region that is needed to allow some really
hacky .init code to work correctly in projects such as OpenSSL. */
- if (__afl_debug)
+ if (__afl_debug) {
+
fprintf(stderr,
"DEBUG: (1) id_str %s, __afl_area_ptr %p, __afl_area_initial %p, "
"__afl_area_ptr_dummy 0x%p, __afl_map_addr 0x%llx, MAP_SIZE %u, "
@@ -325,6 +326,8 @@ static void __afl_map_shm(void) {
__afl_area_initial, __afl_area_ptr_dummy, __afl_map_addr, MAP_SIZE,
__afl_final_loc, FS_OPT_MAX_MAPSIZE, FS_OPT_MAX_MAPSIZE);
+ }
+
if (id_str) {
if (__afl_area_ptr && __afl_area_ptr != __afl_area_initial &&
@@ -463,7 +466,8 @@ static void __afl_map_shm(void) {
__afl_area_ptr_backup = __afl_area_ptr;
- if (__afl_debug)
+ if (__afl_debug) {
+
fprintf(stderr,
"DEBUG: (2) id_str %s, __afl_area_ptr %p, __afl_area_initial %p, "
"__afl_area_ptr_dummy 0x%p, __afl_map_addr 0x%llx, MAP_SIZE "
@@ -473,6 +477,8 @@ static void __afl_map_shm(void) {
__afl_area_initial, __afl_area_ptr_dummy, __afl_map_addr, MAP_SIZE,
__afl_final_loc, FS_OPT_MAX_MAPSIZE, FS_OPT_MAX_MAPSIZE);
+ }
+
if (__afl_selective_coverage) {
if (__afl_map_size > MAP_INITIAL_SIZE) {
@@ -1111,11 +1117,14 @@ void __afl_manual_init(void) {
__afl_sharedmem_fuzzing = 0;
if (__afl_area_ptr == NULL) __afl_area_ptr = __afl_area_ptr_dummy;
- if (__afl_debug)
+ if (__afl_debug) {
+
fprintf(stderr,
"DEBUG: disabled instrumentation because of "
"AFL_DISABLE_LLVM_INSTRUMENTATION\n");
+ }
+
}
if (!init_done) {
@@ -1299,8 +1308,12 @@ void __sanitizer_cov_trace_pc_guard_init(uint32_t *start, uint32_t *stop) {
if (__afl_already_initialized_forkserver &&
__afl_final_loc + 1 + stop - start > __afl_map_size) {
- if (__afl_debug)
- fprintf(stderr, "Warning: new instrumneted code after the forkserver!\n");
+ if (__afl_debug) {
+
+ fprintf(stderr, "Warning: new instrumented code after the forkserver!\n");
+
+ }
+
__afl_final_loc = 2;
if (1 + stop - start > __afl_map_size) {