From 17a1cfddfb27e6231b84f3452051d847e4372fed Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Fri, 31 Jul 2020 15:36:16 +1200 Subject: [PATCH] oss-fuzz: use uninstrumented dynamic python We can't link to the instrumented statically built Python, so instead we use the system Python in the docker image. Signed-off-by: Douglas Bagnall --- lib/fuzzing/oss-fuzz/build_samba.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/fuzzing/oss-fuzz/build_samba.sh b/lib/fuzzing/oss-fuzz/build_samba.sh index 93039e4dbe0..5d3bc3ff6c3 100755 --- a/lib/fuzzing/oss-fuzz/build_samba.sh +++ b/lib/fuzzing/oss-fuzz/build_samba.sh @@ -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 -- 2.25.1