mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-16 03:48:08 +00:00
added AFL_AS_FORCE_INSTRUMENT env
This commit is contained in:
@ -20,6 +20,8 @@ Version ++2.59d (develop):
|
|||||||
- added ./experimental/argv_fuzzing ld_preload library by Kjell Braden
|
- added ./experimental/argv_fuzzing ld_preload library by Kjell Braden
|
||||||
- added preeny's desock_dup ld_preload library as
|
- added preeny's desock_dup ld_preload library as
|
||||||
./experimental/socket_fuzzing for network fuzzing
|
./experimental/socket_fuzzing for network fuzzing
|
||||||
|
- added AFL_AS_FORCE_INSTRUMENT environment variable for afl-as - this is
|
||||||
|
for retrorewrite project
|
||||||
- we now set QEMU_SET_ENV from AFL_PRELOAD when qemu_mode is used
|
- we now set QEMU_SET_ENV from AFL_PRELOAD when qemu_mode is used
|
||||||
|
|
||||||
|
|
||||||
|
@ -65,6 +65,10 @@ tools make fairly broad use of environmental variables:
|
|||||||
mkdir assembly_here
|
mkdir assembly_here
|
||||||
TMPDIR=$PWD/assembly_here AFL_KEEP_ASSEMBLY=1 make clean all
|
TMPDIR=$PWD/assembly_here AFL_KEEP_ASSEMBLY=1 make clean all
|
||||||
|
|
||||||
|
- If you are a weird person that wants to compile and instrument asm
|
||||||
|
text files then use the AFL_AS_FORCE_INSTRUMENT variable:
|
||||||
|
AFL_AS_FORCE_INSTRUMENT=1 afl-gcc foo.s -o foo
|
||||||
|
|
||||||
- Setting AFL_QUIET will prevent afl-cc and afl-as banners from being
|
- Setting AFL_QUIET will prevent afl-cc and afl-as banners from being
|
||||||
displayed during compilation, in case you find them distracting.
|
displayed during compilation, in case you find them distracting.
|
||||||
|
|
||||||
|
@ -208,8 +208,11 @@ static void edit_params(int argc, char** argv) {
|
|||||||
NSS. */
|
NSS. */
|
||||||
|
|
||||||
if (strncmp(input_file, tmp_dir, strlen(tmp_dir)) &&
|
if (strncmp(input_file, tmp_dir, strlen(tmp_dir)) &&
|
||||||
strncmp(input_file, "/var/tmp/", 9) && strncmp(input_file, "/tmp/", 5))
|
strncmp(input_file, "/var/tmp/", 9) && strncmp(input_file, "/tmp/", 5)
|
||||||
|
&& getenv("AFL_AS_FORCE_INSTRUMENT") == NULL)
|
||||||
pass_thru = 1;
|
pass_thru = 1;
|
||||||
|
else if (getenv("AFL_AS_FORCE_INSTRUMENT"))
|
||||||
|
unsetenv("AFL_AS_FORCE_INSTRUMENT");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user