diff options
author | van Hauser <vh@thc.org> | 2020-05-06 00:58:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-06 00:58:13 +0200 |
commit | df5215783414ddda7d9f371ccef5acb2235f66d0 (patch) | |
tree | 52ca748f7a90c9deb09d9380c19f8220f0f45105 /qemu_mode/patches/afl-qemu-cpu-inl.h | |
parent | c7de368dc20078116bcb2e34b0f2237127802841 (diff) | |
parent | a13958b32b6a1d8cba6f82b0d1ad03801721e3ef (diff) | |
download | afl++-df5215783414ddda7d9f371ccef5acb2235f66d0.tar.gz |
Merge pull request #352 from AFLplusplus/dev
Pull to master because of crash in string compare transform
Diffstat (limited to 'qemu_mode/patches/afl-qemu-cpu-inl.h')
-rw-r--r-- | qemu_mode/patches/afl-qemu-cpu-inl.h | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/qemu_mode/patches/afl-qemu-cpu-inl.h b/qemu_mode/patches/afl-qemu-cpu-inl.h index 06243141..6e9ddc3b 100644 --- a/qemu_mode/patches/afl-qemu-cpu-inl.h +++ b/qemu_mode/patches/afl-qemu-cpu-inl.h @@ -275,20 +275,6 @@ void afl_setup(void) { } -static void print_mappings(void) { - - u8 buf[MAX_LINE]; - FILE *f = fopen("/proc/self/maps", "r"); - - if (!f) return; - - while (fgets(buf, MAX_LINE, f)) - printf("%s", buf); - - fclose(f); - -} - /* Fork server logic, invoked once we hit _start. */ void afl_forkserver(CPUState *cpu) { @@ -299,7 +285,7 @@ void afl_forkserver(CPUState *cpu) { if (forkserver_installed == 1) return; forkserver_installed = 1; - if (getenv("AFL_QEMU_DEBUG_MAPS")) print_mappings(); + if (getenv("AFL_QEMU_DEBUG_MAPS")) open_self_maps(cpu->env_ptr, 0); // if (!afl_area_ptr) return; // not necessary because of fixed dummy buffer |