reenabled custom mutator report

This commit is contained in:
Dominik Maier
2020-03-31 14:01:22 +02:00
parent 0b8a5cb4bb
commit c8bdf0790f
4 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
all: libexamplemutator.so all: libexamplemutator.so
libexamplemutator.so: libexamplemutator.so:
$(CC) $(CFLAGS) -fPIC -shared -g -I ../../include example.c -o libexamplemutator.so $(CC) $(CFLAGS) -D_FORTIFY_SOURCE=2 -O3 -fPIC -shared -g -I ../../include example.c -o libexamplemutator.so
clean: clean:
rm -rf libexamplemutator.so rm -rf libexamplemutator.so

View File

@ -48,7 +48,6 @@ static u8 debug;
static u8 cwd[4096]; static u8 cwd[4096];
static u8 cmplog_mode; static u8 cmplog_mode;
u8 use_stdin = 0; /* dummy */ u8 use_stdin = 0; /* dummy */
u8 be_quiet = 0;
u8 *getthecwd() { u8 *getthecwd() {

View File

@ -1648,6 +1648,7 @@ custom_mutator_stage:
} }
/* `(afl->)out_buf` may have been changed by the call to custom_fuzz */ /* `(afl->)out_buf` may have been changed by the call to custom_fuzz */
/* TODO: Only do this when `mutated_buf` == `out_buf`? Branch vs Memcpy. */
memcpy(out_buf, in_buf, len); memcpy(out_buf, in_buf, len);
} }

View File

@ -961,7 +961,7 @@ test -e test-custom-mutator.c -a -e ${CUSTOM_MUTATOR_PATH}/example.c -a -e ${CUS
CODE=1 CODE=1
} }
test "$CODE" = 1 && { $ECHO "$YELLOW[!] custom mutator tests currently will not fail travis" ; CODE=0 ; } #test "$CODE" = 1 && { $ECHO "$YELLOW[!] custom mutator tests currently will not fail travis" ; CODE=0 ; }
make -C ../examples/custom_mutators clean > /dev/null 2>&1 make -C ../examples/custom_mutators clean > /dev/null 2>&1
rm -f test-custom-mutator rm -f test-custom-mutator