File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -471,8 +471,13 @@ src/afl-forkserver.o : $(COMM_HDR) src/afl-forkserver.c include/forkserver.h
471
471
src/afl-sharedmem.o : $(COMM_HDR ) src/afl-sharedmem.c include/sharedmem.h
472
472
$(CC ) $(CFLAGS ) $(CFLAGS_FLTO ) $(SPECIAL_PERFORMANCE ) -c src/afl-sharedmem.c -o src/afl-sharedmem.o
473
473
474
- afl-fuzz : $(COMM_HDR ) include/afl-fuzz.h $(AFL_FUZZ_FILES ) src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o src/afl-performance.o src/hashmap.c | test_x86
475
- $(CC ) $(CFLAGS ) $(COMPILE_STATIC ) $(CFLAGS_FLTO ) $(SPECIAL_PERFORMANCE ) -Wno-shift-count-overflow $(AFL_FUZZ_FILES ) src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o src/afl-performance.o src/hashmap.c -o $@ $(PYFLAGS ) $(LDFLAGS ) -lm -lxgboost
474
+ libxgboost.so :
475
+ git submodule init
476
+ git submodule update --recursive
477
+ mkdir -p xgboost/build && cd xgboost/build && cmake -DUSE_OPENMP=OFF -DHIDE_CXX_SYMBOLS=ON .. && make && cp -v ../lib/libxgboost.so ../..
478
+
479
+ afl-fuzz : $(COMM_HDR ) include/afl-fuzz.h $(AFL_FUZZ_FILES ) src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o src/afl-performance.o src/hashmap.c libxgboost.so | test_x86
480
+ $(CC ) $(CFLAGS ) $(COMPILE_STATIC ) $(CFLAGS_FLTO ) $(SPECIAL_PERFORMANCE ) -Wno-shift-count-overflow $(AFL_FUZZ_FILES ) src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o src/afl-performance.o src/hashmap.c -o $@ $(PYFLAGS ) $(LDFLAGS ) -I./xgboost/include -lm -L. -lxgboost
476
481
477
482
afl-showmap : src/afl-showmap.c src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o src/afl-performance.o $(COMM_HDR ) | test_x86
478
483
$(CC ) $(CFLAGS ) $(COMPILE_STATIC ) $(CFLAGS_FLTO ) $(SPECIAL_PERFORMANCE ) src/$@ .c src/afl-fuzz-mutators.c src/afl-fuzz-python.c src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o src/afl-performance.o -o $@ $(PYFLAGS ) $(LDFLAGS )
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ void create_alias_table(afl_state_t *afl) {
178
178
struct queue_entry * q = afl -> queue_buf [i ];
179
179
180
180
if (likely (!q -> disabled )) {
181
-
181
+ if ( unlikely ( afl -> debug ))
182
182
fprintf (stderr , "Prediction[%u] = %f\n" , i , predictions [count ]);
183
183
afl -> queue_buf [i ]-> weight = predictions [count ++ ];
184
184
sum += predictions [count ++ ];
You can’t perform that action at this time.
0 commit comments