aboutsummaryrefslogtreecommitdiff
path: root/src/afl-common.c
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2021-03-16 09:08:23 +0100
committerGitHub <noreply@github.com>2021-03-16 09:08:23 +0100
commit73641be796feece877a8f141c6351ffb62e596f0 (patch)
tree2c2667cf8642a7f594a24e760af9aed49aa8c656 /src/afl-common.c
parentff9f3fbe96a6be905e6607493e831c1957460e0b (diff)
parent01ad7610beaf772063c9011daae5fa3a3232494c (diff)
downloadafl++-73641be796feece877a8f141c6351ffb62e596f0.tar.gz
Merge pull request #819 from realmadsci/qemu-consistent-preload
Remove AFL_PRELOAD and AFL_USE_QASAN handlers
Diffstat (limited to 'src/afl-common.c')
-rw-r--r--src/afl-common.c60
1 files changed, 0 insertions, 60 deletions
diff --git a/src/afl-common.c b/src/afl-common.c
index 58fbf765..bfb05a67 100644
--- a/src/afl-common.c
+++ b/src/afl-common.c
@@ -345,66 +345,6 @@ char **get_wine_argv(u8 *own_loc, u8 **target_path_p, int argc, char **argv) {
}
-/* Get libqasan path. */
-
-u8 *get_libqasan_path(u8 *own_loc) {
-
- if (!unlikely(own_loc)) { FATAL("BUG: param own_loc is NULL"); }
-
- u8 *tmp, *cp = NULL, *rsl, *own_copy;
-
- tmp = getenv("AFL_PATH");
-
- if (tmp) {
-
- cp = alloc_printf("%s/libqasan.so", tmp);
-
- if (access(cp, X_OK)) { FATAL("Unable to find '%s'", tmp); }
-
- return cp;
-
- }
-
- own_copy = ck_strdup(own_loc);
- rsl = strrchr(own_copy, '/');
-
- if (rsl) {
-
- *rsl = 0;
-
- cp = alloc_printf("%s/libqasan.so", own_copy);
- ck_free(own_copy);
-
- if (!access(cp, X_OK)) { return cp; }
-
- } else {
-
- ck_free(own_copy);
-
- }
-
- if (!access(AFL_PATH "/libqasan.so", X_OK)) {
-
- if (cp) { ck_free(cp); }
-
- return ck_strdup(AFL_PATH "/libqasan.so");
-
- }
-
- SAYF("\n" cLRD "[-] " cRST
- "Oops, unable to find the 'libqasan.so' binary. The binary must be "
- "built\n"
- " separately by following the instructions in "
- "qemu_mode/libqasan/README.md. "
- "If you\n"
- " already have the binary installed, you may need to specify "
- "AFL_PATH in the\n"
- " environment.\n");
-
- FATAL("Failed to locate 'libqasan.so'.");
-
-}
-
/* Find binary, used by analyze, showmap, tmin
@returns the path, allocating the string */