]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
oss-fuzz: use uninstrumented dynamic python
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 31 Jul 2020 03:36:16 +0000 (15:36 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 3 Aug 2020 02:51:35 +0000 (02:51 +0000)
We can't link to the instrumented statically built Python, so instead
we use the system Python in the docker image.

REF: https://github.com/google/oss-fuzz/issues/4223
REF: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22618
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14451

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/fuzzing/oss-fuzz/build_samba.sh

index 93039e4dbe0989e4dd9e9538aae674d93874796e..5d3bc3ff6c33743b54a29f9c2baed71febb4d5f2 100755 (executable)
@@ -21,6 +21,12 @@ export CFLAGS
 LD="$CXX"
 export LD
 
+# Use the system Python, not the OSS-Fuzz provided statically linked
+# and instrumented Python, because we can't statically link.
+
+PYTHON=/usr/bin/python3
+export PYTHON
+
 # $SANITIZER is provided by the oss-fuzz "compile" command
 #
 # We need to add the waf configure option as otherwise when we also