Skip to content

Commit

Permalink
2.33b
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-huet committed Sep 7, 2016
1 parent 602a7de commit 62b46d5
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

/* Version string: */

#define VERSION "2.32b"
#define VERSION "2.33b"

/******************************************************
* *
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.31b. If you're stuck on an earlier release, it's strongly advisable
to get on with the times.

--------------
Version 2.33b:
--------------

- Added code to strip -Wl,-z,defs and -Wl,--no-undefined for afl-clang-fast,
since they interfere with -shared. Spotted and diagnosed by Toby Hutton.

- Added some fuzzing tips for Android.

--------------
Version 2.32b:
--------------
Expand Down
18 changes: 15 additions & 3 deletions docs/INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,20 @@ VirtualBox or so to run a hardware-accelerated Linux VM; it will run around
20x faster or so. If you have a *really* compelling use case for Cygwin, let
me know.

Although Android on x86 should theoretically work, the stock kernel has SHM
support compiled out, so you will need to address this issue first. It's
possible that all you need is this:
Although Android on x86 should theoretically work, the stock kernel may have
SHM support compiled out, and if so, you may have to address that issue first.
It's possible that all you need is this workaround:

https://github.com/pelya/android-shmem

Joshua J. Drake notes that the Android linker adds a shim that automatically
intercepts SIGSEGV and related signals. To fix this issue and be able to see
crashes, you need to put this at the beginning of the fuzzed program:

signal(SIGILL, SIG_DFL);
signal(SIGABRT, SIG_DFL);
signal(SIGBUS, SIG_DFL);
signal(SIGFPE, SIG_DFL);
signal(SIGSEGV, SIG_DFL);

You may need to #include <signal.h> first.
1 change: 1 addition & 0 deletions docs/README
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ bug reports, or patches from:
Vegard Nossum Jan Kneschke
Kurt Roeckx Marcel Bohme
Van-Thuan Pham Abhik Roychoudhury
Joshua J. Drake Toby Hutton

Thank you!

Expand Down
3 changes: 3 additions & 0 deletions llvm_mode/afl-clang-fast.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ static void edit_params(u32 argc, char** argv) {

if (!strcmp(cur, "-shared")) maybe_linking = 0;

if (!strcmp(cur, "-Wl,-z,defs") ||
!strcmp(cur, "-Wl,--no-undefined")) continue;

cc_params[cc_par_cnt++] = cur;

}
Expand Down

0 comments on commit 62b46d5

Please sign in to comment.