brackets make dominik happy
MODIFY
instrumentation/afl-compiler-rt.o.c
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,13 +1117,16 @@ 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) {
__afl_start_forkserver();
@@ -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) {

brackets make dominik happy