Skip to content

Commit d334093

Browse files
committed
deprecated AFL_POST_LIBRARY
1 parent 044bd3c commit d334093

File tree

12 files changed

+14
-385
lines changed

12 files changed

+14
-385
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,8 +672,9 @@ Here are some of the most important caveats for AFL:
672672

673673
To work around this, you can comment out the relevant checks (see
674674
examples/libpng_no_checksum/ for inspiration); if this is not possible,
675-
you can also write a postprocessor, as explained in
676-
examples/post_library/ (with AFL_POST_LIBRARY)
675+
you can also write a postprocessor, one of the hooks of custom mutators.
676+
See [docs/custom_mutators.md](docs/custom_mutators.md) on how to use
677+
`AFL_CUSTOM_MUTATOR_LIBRARY`
677678

678679
- There are some unfortunate trade-offs with ASAN and 64-bit binaries. This
679680
isn't due to any specific fault of afl-fuzz; see [docs/notes_for_asan.md](docs/notes_for_asan.md)

docs/Changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ sending a mail to <[email protected]>.
1515
- better python detection
1616
- an old, old bug in afl that would show negative stability in rare
1717
circumstances is now hopefully fixed
18+
- AFL_POST_LIBRARY was deprecated, use AFL_CUSTOM_MUTATOR_LIBRARY
19+
instead (see docs/custom_mutators.md)
1820
- llvm_mode:
1921
- afl-clang-fast/lto now do not skip single block functions. This
2022
behaviour can be reactivated with AFL_LLVM_SKIPSINGLEBLOCK

docs/env_variables.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,8 @@ checks or alter some of the more exotic semantics of the tool:
310310
else. This makes the "own finds" counter in the UI more accurate.
311311
Beyond counter aesthetics, not much else should change.
312312

313-
- Setting AFL_POST_LIBRARY allows you to configure a postprocessor for
314-
mutated files - say, to fix up checksums. See examples/post_library/
315-
for more.
313+
- Note that AFL_POST_LIBRARY is deprecated, use AFL_CUSTOM_MUTATOR_LIBRARY
314+
instead (see below).
316315

317316
- Setting AFL_CUSTOM_MUTATOR_LIBRARY to a shared library with
318317
afl_custom_fuzz() creates additional mutations through this library.

docs/sister_projects.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,6 @@ functionality is now available as the "persistent" feature described in
5656

5757
http://llvm.org/docs/LibFuzzer.html
5858

59-
## AFL fixup shim (Ben Nagy)
60-
61-
Allows AFL_POST_LIBRARY postprocessors to be written in arbitrary languages
62-
that don't have C / .so bindings. Includes examples in Go.
63-
64-
https://github.com/bnagy/aflfix
65-
6659
## TriforceAFL (Tim Newsham and Jesse Hertz)
6760

6861
Leverages QEMU full system emulation mode to allow AFL to target operating

examples/post_library/post_library.so.c

Lines changed: 0 additions & 159 deletions
This file was deleted.

examples/post_library/post_library_png.so.c

Lines changed: 0 additions & 156 deletions
This file was deleted.

include/afl-fuzz.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,8 @@ typedef struct afl_env_vars {
323323
afl_bench_until_crash, afl_debug_child_output, afl_autoresume,
324324
afl_cal_fast;
325325

326-
u8 *afl_tmpdir, *afl_post_library, *afl_custom_mutator_library,
327-
*afl_python_module, *afl_path, *afl_hang_tmout, *afl_skip_crashes,
328-
*afl_preload;
326+
u8 *afl_tmpdir, *afl_custom_mutator_library, *afl_python_module, *afl_path,
327+
*afl_hang_tmout, *afl_skip_crashes, *afl_preload;
329328

330329
} afl_env_vars_t;
331330

src/afl-common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ char *afl_environment_variables[] = {
7676
"AFL_NO_X86", // not really an env but we dont want to warn on it
7777
"AFL_MAP_SIZE", "AFL_MAPSIZE", "AFL_PATH", "AFL_PERFORMANCE_FILE",
7878
//"AFL_PERSISTENT", // not implemented anymore, so warn additionally
79-
"AFL_POST_LIBRARY", "AFL_PRELOAD", "AFL_PYTHON_MODULE", "AFL_QEMU_COMPCOV",
79+
"AFL_PRELOAD", "AFL_PYTHON_MODULE", "AFL_QEMU_COMPCOV",
8080
"AFL_QEMU_COMPCOV_DEBUG", "AFL_QEMU_DEBUG_MAPS", "AFL_QEMU_DISABLE_CACHE",
8181
"AFL_QEMU_PERSISTENT_ADDR", "AFL_QEMU_PERSISTENT_CNT",
8282
"AFL_QEMU_PERSISTENT_GPR", "AFL_QEMU_PERSISTENT_HOOK",

0 commit comments

Comments
 (0)