about summary refs log tree commit diff
path: root/test
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2019-10-20 02:35:06 +0200
committerhexcoder- <heiko@hexco.de>2019-10-20 02:35:06 +0200
commitd0bbef74ef4ecdf41f7b88b77ff833b563d78450 (patch)
treeba651f2b4200c001b1bc13391796ca0d9059b521 /test
parenta282ae22afec0e5d5a8455c7aaa3e472839788e4 (diff)
downloadafl++-d0bbef74ef4ecdf41f7b88b77ff833b563d78450.tar.gz
loading dynamical libraries on Darwin/MacOSX is done with DYLD_INSERT_LIBRARIES
Diffstat (limited to 'test')
-rwxr-xr-xtest/test.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test.sh b/test/test.sh
index 1c5cdda6..d1be014f 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -281,7 +281,8 @@ test -e ../libtokencap.so && {
 test -e ../libdislocator.so && {
   {
     ulimit -c 1
-    LD_PRELOAD=../libdislocator.so ./test-compcov BUFFEROVERFLOW > test.out 2> /dev/null
+    # DYLD_INSERT_LIBRARIES is used on Darwin/MacOSX
+    LD_PRELOAD=../libdislocator.so DYLD_INSERT_LIBRARIES=../libdislocator.so ./test-compcov BUFFEROVERFLOW > test.out 2> /dev/null
   } > /dev/null 2>&1
   grep -q BUFFEROVERFLOW test.out > /dev/null 2>&1 && {
     $ECHO "$RED[!] libdislocator did not detect the memory corruption"