Skip to content

Commit

Permalink
2.13b
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-huet committed May 21, 2016
1 parent dcb90e0 commit 18f36b7
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#

PROGNAME = afl
VERSION = 2.12b
VERSION = 2.13b

PREFIX ?= /usr/local
BIN_PATH = $(PREFIX)/bin
Expand Down
6 changes: 3 additions & 3 deletions afl-fuzz.c
Original file line number Diff line number Diff line change
Expand Up @@ -7034,9 +7034,9 @@ static void check_crash_handling(void) {

SAYF("\n" cLRD "[-] " cRST
"Hmm, your system is configured to send core dump notifications to an\n"
" external utility. This will cause issues due to an extended delay\n"
" between the fuzzed binary malfunctioning and this information being\n"
" eventually relayed to the fuzzer via the standard waitpid() API.\n\n"
" external utility. This will cause issues: there will be an extended delay\n"
" between stumbling upon a crash and having this information relayed to the\n"
" fuzzer via the standard waitpid() API.\n\n"

" To avoid having crashes misinterpreted as hangs, please log in as root\n"
" and temporarily modify /proc/sys/kernel/core_pattern, like so:\n\n"
Expand Down
7 changes: 6 additions & 1 deletion afl-showmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,16 @@ static u32 write_results(void) {
u8 cco = !!getenv("AFL_CMIN_CRASHES_ONLY"),
caa = !!getenv("AFL_CMIN_ALLOW_ANY");

if (!strncmp(out_file,"/dev/", 5)) {
if (!strncmp(out_file, "/dev/", 5)) {

fd = open(out_file, O_WRONLY, 0600);
if (fd < 0) PFATAL("Unable to open '%s'", out_file);

} else if (!strcmp(out_file, "-")) {

fd = dup(1);
if (fd < 0) PFATAL("Unable to open stdout");

} else {

unlink(out_file); /* Ignore errors */
Expand Down
10 changes: 6 additions & 4 deletions afl-whatsup
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ DEAD_CNT=0

TOTAL_TIME=0
TOTAL_EXECS=0
TOTAL_EPS=0
TOTAL_CRASHES=0
TOTAL_PFAV=0
TOTAL_PENDING=0
Expand Down Expand Up @@ -105,15 +106,16 @@ for i in `find . -maxdepth 2 -iname fuzzer_stats`; do

ALIVE_CNT=$((ALIVE_CNT + 1))

EXEC_SEC=$((execs_done / RUN_UNIX))
PATH_PERC=$((cur_path * 100 / paths_total))

TOTAL_TIME=$((TOTAL_TIME + RUN_UNIX))
TOTAL_EPS=$((TOTAL_EPS + EXEC_SEC))
TOTAL_EXECS=$((TOTAL_EXECS + execs_done))
TOTAL_CRASHES=$((TOTAL_CRASHES + unique_crashes))
TOTAL_PENDING=$((TOTAL_PENDING + pending_total))
TOTAL_PFAV=$((TOTAL_PFAV + pending_favs))

EXEC_SEC=$((execs_done / RUN_UNIX))
PATH_PERC=$((cur_path * 100 / paths_total))

if [ "$SUMMARY_ONLY" = "" ]; then

echo " cycle $((cycles_done + 1)), lifetime speed $EXEC_SEC execs/sec, path $cur_path/$paths_total (${PATH_PERC}%)"
Expand Down Expand Up @@ -148,7 +150,7 @@ fi

echo " Total run time : $TOTAL_DAYS days, $TOTAL_HRS hours"
echo " Total execs : $((TOTAL_EXECS / 1000 / 1000)) million"
echo " Cumulative speed : $((TOTAL_EXECS * ALIVE_CNT / TOTAL_TIME)) execs/sec"
echo " Cumulative speed : $TOTAL_EPS execs/sec"
echo " Pending paths : $TOTAL_PFAV faves, $TOTAL_PENDING total"

if [ "$ALIVE_CNT" -gt "1" ]; then
Expand Down
9 changes: 9 additions & 0 deletions docs/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ Not sure if you should upgrade? The lowest currently recommended version
is 2.07b. If you're stuck on an earlier release, it's strongly advisable
to get on with the times.

--------------
Version 2.13b:
--------------

- Fixed a spurious build test error with trace-pc and llvm_mode/Makefile.
Spotted by Markus Teufelberger.

- Fixed a cosmetic issue with afl-whatsup. Spotted by Brandon Perry.

--------------
Version 2.12b:
--------------
Expand Down
14 changes: 11 additions & 3 deletions docs/sister_projects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ afl-sid (Jacek Wielemborek)

https://github.com/d33tah/afl-sid

-------------------------------------
Crash triage, coverage analysis, etc:
-------------------------------------
-----------------------------------------------------------
Crash triage, coverage analysis, and other companion tools:
-----------------------------------------------------------

afl-crash-analyzer (Tobias Ospelt)
----------------------------------
Expand Down Expand Up @@ -172,6 +172,14 @@ aflize (Jacek Wielemborek)

https://github.com/d33tah/aflize

afl-ddmin-mod (Markus Teufelberger)
-----------------------------------

A variant of afl-tmin that uses a more sophisticated (but slower)
minimization algorithm.

https://github.com/MarkusTeufelberger/afl-ddmin-mod

-------------------------------
Narrow-purpose or experimental:
-------------------------------
Expand Down
2 changes: 1 addition & 1 deletion llvm_mode/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ endif

test_build: $(PROGS)
@echo "[*] Testing the CC wrapper and instrumentation output..."
unset AFL_USE_ASAN AFL_USE_MSAN; AFL_QUIET=1 AFL_INST_RATIO=100 AFL_PATH=. AFL_CC=$(CC) ../afl-clang-fast $(CFLAGS) ../test-instr.c -o test-instr $(LDFLAGS)
unset AFL_USE_ASAN AFL_USE_MSAN AFL_INST_RATIO; AFL_QUIET=1 AFL_PATH=. AFL_CC=$(CC) ../afl-clang-fast $(CFLAGS) ../test-instr.c -o test-instr $(LDFLAGS)
echo 0 | ../afl-showmap -m none -q -o .test-instr0 ./test-instr
echo 1 | ../afl-showmap -m none -q -o .test-instr1 ./test-instr
@rm -f test-instr
Expand Down

0 comments on commit 18f36b7

Please sign in to comment.