Skip to content

Commit

Permalink
2.16b
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-huet committed Jul 24, 2016
1 parent ffe8cc7 commit b40be2f
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#

PROGNAME = afl
VERSION = 2.15b
VERSION = $(shell grep '^\#define VERSION ' config.h | cut -d '"' -f2)

PREFIX ?= /usr/local
BIN_PATH = $(PREFIX)/bin
Expand All @@ -30,7 +30,7 @@ SH_PROGS = afl-plot afl-cmin afl-whatsup
CFLAGS ?= -O3 -funroll-loops
CFLAGS += -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign \
-DAFL_PATH=\"$(HELPER_PATH)\" -DDOC_PATH=\"$(DOC_PATH)\" \
-DBIN_PATH=\"$(BIN_PATH)\" -DVERSION=\"$(VERSION)\"
-DBIN_PATH=\"$(BIN_PATH)\"

ifneq "$(filter Linux GNU%,$(shell uname))" ""
LDFLAGS += -ldl
Expand Down Expand Up @@ -66,7 +66,7 @@ afl-gcc: afl-gcc.c $(COMM_HDR) | test_x86
set -e; for i in afl-g++ afl-clang afl-clang++; do ln -sf afl-gcc $$i; done

afl-as: afl-as.c afl-as.h $(COMM_HDR) | test_x86
$(CC) $(CFLAGS) $@.c -o $@ $(LDFLAGS)
$(CC) $(CFLAGS) $@.c -o $@ $(LDFLAGS)
ln -sf afl-as as

afl-fuzz: afl-fuzz.c $(COMM_HDR) | test_x86
Expand Down Expand Up @@ -132,7 +132,7 @@ install: all

publish: clean
test "`basename $$PWD`" = "afl" || exit 1
test -f ~/www/afl/releases/$(PROGNAME)-$(VERSION).tgz; if [ "$$?" = "0" ]; then echo; echo "Change program version in Makefile, mmkay?"; echo; exit 1; fi
test -f ~/www/afl/releases/$(PROGNAME)-$(VERSION).tgz; if [ "$$?" = "0" ]; then echo; echo "Change program version in config.h, mmkay?"; echo; exit 1; fi
cd ..; rm -rf $(PROGNAME)-$(VERSION); cp -pr $(PROGNAME) $(PROGNAME)-$(VERSION); \
tar -cvz -f ~/www/afl/releases/$(PROGNAME)-$(VERSION).tgz $(PROGNAME)-$(VERSION)
chmod 644 ~/www/afl/releases/$(PROGNAME)-$(VERSION).tgz
Expand Down
4 changes: 3 additions & 1 deletion afl-as.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ static const u8* main_payload_32 =
" xorl %ecx, %edi\n"
" shrl $1, %ecx\n"
" movl %ecx, __afl_prev_loc\n"
#endif /* !COVERAGE_ONLY */
#else
" movl %ecx, %edi\n"
#endif /* ^!COVERAGE_ONLY */
"\n"
#ifdef SKIP_COUNTS
" orb $1, (%edx, %edi, 1)\n"
Expand Down
4 changes: 4 additions & 0 deletions config.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@

#include "types.h"

/* Version string: */

#define VERSION "2.16b"

/******************************************************
* *
* Settings that may be of interest to power users: *
Expand Down
10 changes: 10 additions & 0 deletions docs/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ 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.16b:
--------------

- Improved support for older versions of clang (hopefully without
breaking anything).

- Moved version data from Makefile to config.h. Suggested by
Jonathan Metzman.

--------------
Version 2.15b:
--------------
Expand Down
7 changes: 5 additions & 2 deletions docs/README
Original file line number Diff line number Diff line change
Expand Up @@ -340,15 +340,18 @@ near the end of technical_details.txt.
------------------------

Fuzzing is a wonderful and underutilized technique for discovering non-crashing
design and implementation errors, too. Plenty of interesting bugs have been
found by modifying the target programs to call abort() when:
design and implementation errors, too. Quite a few interesting bugs have been
found by modifying the target programs to call abort() when, say:

- Two bignum libraries produce different outputs when given the same
fuzzer-generated input,

- An image library produces different outputs when asked to decode the same
input image several times in a row,

- A serialization / deserialization library fails to produce stable outputs
when iteratively serializing and deserializing fuzzer-supplied data,

- A compression library produces an output inconsistent with the input file
when asked to compress and then decompress a particular blob.

Expand Down
2 changes: 1 addition & 1 deletion llvm_mode/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ PREFIX ?= /usr/local
HELPER_PATH = $(PREFIX)/lib/afl
BIN_PATH = $(PREFIX)/bin

VERSION = $(shell grep ^VERSION ../Makefile | cut -d= -f2 | sed 's/ //')
VERSION = $(shell grep '^\#define VERSION ' ../config.h | cut -d '"' -f2)

LLVM_CONFIG ?= llvm-config

Expand Down
2 changes: 1 addition & 1 deletion llvm_mode/afl-llvm-pass.so.cc
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ bool AFLCoverage::runOnModule(Module &M) {

GlobalVariable *AFLPrevLoc = new GlobalVariable(
M, Int32Ty, false, GlobalValue::ExternalLinkage, 0, "__afl_prev_loc",
0, GlobalValue::GeneralDynamicTLSModel, 0, false);
0, GlobalVariable::GeneralDynamicTLSModel, 0, false);

/* Instrument all the things! */

Expand Down

0 comments on commit b40be2f

Please sign in to comment.