]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib/fuzzing Add comments to explain RUNPATH manipulation in build.sh
authorAndrew Bartlett <abartlet@samba.org>
Sat, 7 Dec 2019 18:44:45 +0000 (07:44 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 10 Dec 2019 07:50:29 +0000 (07:50 +0000)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
lib/fuzzing/oss-fuzz/build_samba.sh

index f76955aeb7397452b1f55bfcc933e1b1100bb3a0..2c09ba323efbd74cf481e5fb15fbc527333a47ec 100755 (executable)
@@ -57,6 +57,11 @@ for x in bin/fuzz_*
 do
     cp $x $OUT/
     bin=`basename $x`
+
+    # Copy any system libraries needed by this fuzzer to $OUT/lib
     ldd $OUT/$bin | cut -f 2 -d '>' | cut -f 1 -d \( | cut -f 2 -d  ' ' | xargs -i cp \{\} $OUT/lib/
+
+    # Change RUNPATH so that the copied libraries are found on the
+    # runner
     chrpath -r '$ORIGIN/lib' $OUT/$bin
 done