mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-16 11:58:08 +00:00
code cleanups (from cppcheck)
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
#define __GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#include <dlfcn.h>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
|
@ -1,10 +1,10 @@
|
||||
all:
|
||||
afl-clang-fast -o persistent_demo persistent_demo.c
|
||||
afl-clang-fast -o persistent_demo_new persistent_demo_new.c
|
||||
AFL_DONT_OPTIMIZE=1 afl-clang-fast -o test-instr test-instr.c
|
||||
../../afl-clang-fast -o persistent_demo persistent_demo.c
|
||||
../../afl-clang-fast -o persistent_demo_new persistent_demo_new.c
|
||||
AFL_DONT_OPTIMIZE=1 ../../afl-clang-fast -o test-instr test-instr.c
|
||||
|
||||
document:
|
||||
AFL_DONT_OPTIMIZE=1 afl-clang-fast -D_AFL_DOCUMENT_MUTATIONS -o test-instr test-instr.c
|
||||
AFL_DONT_OPTIMIZE=1 ../../afl-clang-fast -D_AFL_DOCUMENT_MUTATIONS -o test-instr test-instr.c
|
||||
|
||||
clean:
|
||||
rm -f persistent_demo persistent_demo_new test-instr
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
int target_func(unsigned char *buf, int size) {
|
||||
|
||||
printf("buffer:%p, size:%p\n", buf, size);
|
||||
printf("buffer:%p, size:%d\n", buf, size);
|
||||
switch (buf[0]) {
|
||||
|
||||
case 1:
|
||||
|
Reference in New Issue
Block a user