diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2020-07-31 15:36:16 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2020-08-03 02:51:35 +0000 |
commit | 326bc84c0d0f83b4429e78b6c974204116233330 (patch) | |
tree | c53dc1f4c3bc280d04e4660241957ce5f56ef082 /lib/fuzzing | |
parent | 698d20d39d4eb1a46c8998d0f9be2719890bf803 (diff) | |
download | samba-326bc84c0d0f83b4429e78b6c974204116233330.tar.gz |
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 <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/fuzzing')
-rwxr-xr-x | lib/fuzzing/oss-fuzz/build_samba.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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 |