mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-12 01:58:17 +00:00
final touches
This commit is contained in:
@ -19,9 +19,9 @@ matrix:
|
|||||||
dist: xenial
|
dist: xenial
|
||||||
arch: arm64
|
arch: arm64
|
||||||
env: NAME="xenial-arm64" MODERN="no" GCC="5" EXTRA="libtool-bin" AFL_NO_X86="1" CPU_TARGET="aarch64"
|
env: NAME="xenial-arm64" MODERN="no" GCC="5" EXTRA="libtool-bin" AFL_NO_X86="1" CPU_TARGET="aarch64"
|
||||||
- os: osx
|
# - os: osx
|
||||||
osx_image: xcode11.2
|
# osx_image: xcode11.2
|
||||||
env: NAME="osx" HOMEBREW_NO_ANALYTICS="1" LINK="http://releases.llvm.org/9.0.0/" NAME="clang+llvm-9.0.0-x86_64-darwin-apple"
|
# env: NAME="osx" HOMEBREW_NO_ANALYTICS="1" LINK="http://releases.llvm.org/9.0.0/" NAME="clang+llvm-9.0.0-x86_64-darwin-apple"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
|
@ -24,8 +24,10 @@ Version ++2.58d (dev):
|
|||||||
- added Radamsa and an optional radamsa stage (-R)
|
- added Radamsa and an optional radamsa stage (-R)
|
||||||
- CPU affinity support for DragonFly
|
- CPU affinity support for DragonFly
|
||||||
- added -u command line option to not unlink the fuzz input file
|
- added -u command line option to not unlink the fuzz input file
|
||||||
- llvm_mode: float splitting is now configured via AFL_LLVM_LAF_SPLIT_FLOATS
|
- llvm_mode:
|
||||||
- libtokencap: support for *BSD/OSX added
|
- float splitting is now configured via AFL_LLVM_LAF_SPLIT_FLOATS
|
||||||
|
- support for llvm 10 included now (thanks to devnexen)
|
||||||
|
- libtokencap: support for *BSD/OSX/Dragonfly added
|
||||||
- compcov: floating point splitting support for QEMU on x86 targets
|
- compcov: floating point splitting support for QEMU on x86 targets
|
||||||
- Dockerfile by courtesy of devnexen
|
- Dockerfile by courtesy of devnexen
|
||||||
- ripped regex.dictionary from Google afl PR
|
- ripped regex.dictionary from Google afl PR
|
||||||
|
@ -326,9 +326,12 @@ int main(int argc, char** argv) {
|
|||||||
" initially by <aseipp@pobox.com>, maintainer: hexcoder-\n");
|
" initially by <aseipp@pobox.com>, maintainer: hexcoder-\n");
|
||||||
|
|
||||||
if (getenv("AFL_GCC_WHITELIST") == NULL) {
|
if (getenv("AFL_GCC_WHITELIST") == NULL) {
|
||||||
|
|
||||||
SAYF(cYEL "Warning:" cRST " using afl-gcc-fast without using AFL_GCC_WHITELIST currently produces worse results than afl-gcc. Even better, use llvm_mode for now.\n");
|
SAYF(cYEL "Warning:" cRST
|
||||||
|
" using afl-gcc-fast without using AFL_GCC_WHITELIST currently "
|
||||||
|
"produces worse results than afl-gcc. Even better, use "
|
||||||
|
"llvm_mode for now.\n");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -47,15 +47,19 @@ ifeq "$(LLVM_UNSUPPORTED)" "1"
|
|||||||
$(warn llvm_mode only supports versions 3.8.0 up to 9)
|
$(warn llvm_mode only supports versions 3.8.0 up to 9)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# this is not visible yet:
|
|
||||||
ifeq "$(LLVM_MAJOR)" "9"
|
ifeq "$(LLVM_MAJOR)" "9"
|
||||||
$(info llvm_mode detected llvm 9, enabling neverZero implementation)
|
$(info llvm_mode detected llvm 9, enabling neverZero implementation)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq "$(LLVM_NEW_API)" "1"
|
ifeq "$(LLVM_NEW_API)" "1"
|
||||||
|
$(info llvm_mode detected llvm 10+, enabling neverZero implementation and c++14)
|
||||||
LLVM_STDCXX = c++14
|
LLVM_STDCXX = c++14
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq "$(LLVM_APPLE)" "1"
|
||||||
|
$(warn llvm_mode will not compile with Xcode clang...)
|
||||||
|
endif
|
||||||
|
|
||||||
CFLAGS ?= -O3 -funroll-loops
|
CFLAGS ?= -O3 -funroll-loops
|
||||||
CFLAGS += -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign -I ../include/ \
|
CFLAGS += -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign -I ../include/ \
|
||||||
-DAFL_PATH=\"$(HELPER_PATH)\" -DBIN_PATH=\"$(BIN_PATH)\" \
|
-DAFL_PATH=\"$(HELPER_PATH)\" -DBIN_PATH=\"$(BIN_PATH)\" \
|
||||||
|
@ -427,9 +427,9 @@ test -e ../libradamsa.so && {
|
|||||||
test -e test-instr.plain && {
|
test -e test-instr.plain && {
|
||||||
mkdir -p in
|
mkdir -p in
|
||||||
echo 0 > in/in
|
echo 0 > in/in
|
||||||
$ECHO "$GREY[*] running afl-fuzz with radamsa, this will take approx 20 seconds"
|
$ECHO "$GREY[*] running afl-fuzz with radamsa, this will take approx 30 seconds"
|
||||||
{
|
{
|
||||||
../afl-fuzz -RR -V20 -m ${MEM_LIMIT} -i in -o out -- ./test-instr.plain >>errors 2>&1
|
../afl-fuzz -RR -V30 -m ${MEM_LIMIT} -i in -o out -- ./test-instr.plain >>errors 2>&1
|
||||||
} >>errors 2>&1
|
} >>errors 2>&1
|
||||||
test -n "$( ls out/queue/id:000002* 2> /dev/null )" && {
|
test -n "$( ls out/queue/id:000002* 2> /dev/null )" && {
|
||||||
$ECHO "$GREEN[+] libradamsa performs good - and very slow - mutations"
|
$ECHO "$GREEN[+] libradamsa performs good - and very slow - mutations"
|
||||||
|
Reference in New Issue
Block a user