about summary refs log tree commit diff
path: root/qemu_mode
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-05-21 11:00:52 +0200
committerGitHub <noreply@github.com>2021-05-21 11:00:52 +0200
commit06d703bf66b95e61d3cbefbff1edad6af172e342 (patch)
tree414a4dff0a16bf3897cf59281c6f8b6c876e0c64 /qemu_mode
parent5997a4fc09163c1baa186f5a9d00c4c8668a72b1 (diff)
parentda2d4d8258d725f79c2daa22bf3b1a59c593e472 (diff)
downloadafl++-06d703bf66b95e61d3cbefbff1edad6af172e342.tar.gz
Merge branch 'stable' into dev
Diffstat (limited to 'qemu_mode')
-rw-r--r--qemu_mode/libqasan/libqasan.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/qemu_mode/libqasan/libqasan.c b/qemu_mode/libqasan/libqasan.c
index a64db10f..d4742e3e 100644
--- a/qemu_mode/libqasan/libqasan.c
+++ b/qemu_mode/libqasan/libqasan.c
@@ -69,6 +69,9 @@ __attribute__((constructor)) void __libqasan_init() {
   __libqasan_is_initialized = 1;
 
   __libqasan_init_hooks();
+  
+  if (getenv("AFL_INST_LIBS") || getenv("QASAN_HOTPACH"))
+    __libqasan_hotpatch();
 
   if (getenv("AFL_INST_LIBS") || getenv("QASAN_HOTPACH")) __libqasan_hotpatch();