Skip to content

Commit

Permalink
2.09b
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-huet committed May 21, 2016
1 parent 41cbaf9 commit 501dff4
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#

PROGNAME = afl
VERSION = 2.08b
VERSION = 2.09b

PREFIX ?= /usr/local
BIN_PATH = $(PREFIX)/bin
Expand Down Expand Up @@ -103,6 +103,7 @@ test_build: afl-gcc afl-as afl-showmap
endif

all_done: test_build
@if [ ! "`which clang 2>/dev/null`" = "" ]; then echo "[+] LLVM users: see llvm_mode/README.llvm for a faster alternative to afl-gcc."; fi
@echo "[+] All done! Be sure to review README - it's pretty short and useful."
@if [ "`uname`" = "Darwin" ]; then printf "\nWARNING: Fuzzing on MacOS X is slow because of the unusually high overhead of\nfork() on this OS. Consider using Linux or *BSD. You can also use VirtualBox\n(virtualbox.org) to put AFL inside a Linux or *BSD VM.\n\n"; fi
@! tty <&1 >/dev/null || printf "\033[0;30mNOTE: If you can read this, your terminal probably uses white background.\nThis will make the UI hard to read. See docs/status_screen.txt for advice.\033[0m\n" 2>/dev/null
Expand Down
22 changes: 21 additions & 1 deletion afl-fuzz.c
Original file line number Diff line number Diff line change
Expand Up @@ -4130,8 +4130,26 @@ static void show_stats(void) {

if (!no_cpu_meter_red && cur_utilization >= 150) cpu_color = cLRD;

#ifdef HAVE_AFFINITY

if (use_affinity) {

SAYF(SP10 cGRA "[cpu@%02u:%s%3u%%" cGRA "]\r" cRST,
MIN(cpu_aff_child, 99), cpu_color,
MIN(cur_utilization, 999));

} else {

SAYF(SP10 cGRA " [cpu:%s%3u%%" cGRA "]\r" cRST,
cpu_color, MIN(cur_utilization, 999));

}
#else

SAYF(SP10 cGRA " [cpu:%s%3u%%" cGRA "]\r" cRST,
cpu_color, cur_utilization < 999 ? cur_utilization : 999);
cpu_color, MIN(cur_utilization, 999));

#endif /* ^HAVE_AFFINITY */

} else SAYF("\r");

Expand Down Expand Up @@ -7166,6 +7184,8 @@ static void get_core_count(void) {
if (use_affinity)
OKF("Using specified CPU affinity: main = %u, child = %u",
cpu_aff_main, cpu_aff_child);
else if (cpu_core_count > 1)
OKF(cBRI "Try setting CPU affinity (-Z) for a performance boost!" cRST);

#endif /* HAVE_AFFINITY */

Expand Down
8 changes: 8 additions & 0 deletions docs/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ 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.09b:
--------------

- Made several documentation updates.

- Added some visual indicators to promote and simplify the use of -Z.

--------------
Version 2.08b:
--------------
Expand Down
4 changes: 4 additions & 0 deletions docs/README
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,10 @@ multi-core systems, parallelization is necessary to fully utilize the hardware.
For tips on how to fuzz a common target on multiple cores or multiple networked
machines, please refer to parallel_fuzzing.txt.

The parallel fuzzing mode also offers a simple way for interfacing AFL to other
fuzzers, to symbolic or concolic execution engines, and so forth; again, see the
last section of parallel_fuzzing.txt for tips.

9) Fuzzer dictionaries
----------------------

Expand Down
8 changes: 8 additions & 0 deletions docs/sister_projects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ afl.rs (Keegan McAllister)

https://github.com/kmcallister/afl.rs

OCaml support (KC Sivaramakrishnan)
-----------------------------------

Adds AFL-compatible instrumentation to OCaml programs.

https://github.com/ocamllabs/opam-repo-dev/pull/23
http://canopy.mirage.io/Posts/Fuzzing

AFL for GCJ Java and other GCC frontends (-)
--------------------------------------------

Expand Down
4 changes: 3 additions & 1 deletion llvm_mode/README.llvm
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ The basic structure of the program that does this would be:

The numerical value specified within the loop controls the maximum number
of iterations before AFL will restart the process from scratch. This minimizes
the impact of memory leaks and similar glitches; 1000 is a good starting point.
the impact of memory leaks and similar glitches; 1000 is a good starting point,
and going much higher increases the likelihood of hiccups without giving you
any real performance benefits.

A more detailed template is shown in ../experimental/persistent_demo/.
Similarly to the previous mode, the feature works only with afl-clang-fast;
Expand Down

0 comments on commit 501dff4

Please sign in to comment.