From 326bc84c0d0f83b4429e78b6c974204116233330 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Fri, 31 Jul 2020 15:36:16 +1200 Subject: 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. 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 Reviewed-by: Andrew Bartlett --- 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 -- cgit v1.2.1