mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-12 18:18:07 +00:00
make AFL_CUSTOM_INFO overridable
This commit is contained in:
@ -8,7 +8,7 @@ all: symqemu-mutator.so
|
||||
CFLAGS += -O3 -funroll-loops
|
||||
|
||||
symqemu-mutator.so: symqemu.c
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -g -I../../include -shared -fPIC -o symqemu-mutator.so symqemu.c
|
||||
$(CC) -g $(CFLAGS) $(CPPFLAGS) -g -I../../include -shared -fPIC -o symqemu-mutator.so symqemu.c
|
||||
|
||||
clean:
|
||||
rm -f symqemu-mutator.so *.o *~ core
|
||||
|
@ -1833,7 +1833,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
}
|
||||
|
||||
{
|
||||
if (!getenv("AFL_CUSTOM_INFO_PROGRAM_ARGV")) {
|
||||
|
||||
u8 envbuf[8096] = "", tmpbuf[8096] = "";
|
||||
for (s32 i = optind + 1; i < argc; ++i) {
|
||||
@ -1864,8 +1864,12 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
}
|
||||
|
||||
if (!getenv("AFL_CUSTOM_INFO_OUT") {
|
||||
|
||||
setenv("AFL_CUSTOM_INFO_OUT", afl->out_dir, 1); // same as __AFL_OUT_DIR
|
||||
|
||||
}
|
||||
|
||||
setup_custom_mutators(afl);
|
||||
|
||||
if (afl->limit_time_sig > 0 && afl->custom_mutators_count) {
|
||||
|
Reference in New Issue
Block a user