mirror of https://github.com/google/oss-fuzz.git
nDPI: fix MSAN support (#9091)
With MSAN sanitizer we need to instrument all the dependencies. See #9088
This commit is contained in:
parent
675c275884
commit
fbf649a9fe
|
@ -15,12 +15,14 @@
|
|||
#
|
||||
################################################################################
|
||||
|
||||
if [[ "$SANITIZER" != "memory" ]]; then
|
||||
#Disable code instrumentation
|
||||
CFLAGS_SAVE="$CFLAGS"
|
||||
CXXFLAGS_SAVE="$CXXFLAGS"
|
||||
unset CFLAGS
|
||||
unset CXXFLAGS
|
||||
export AFL_NOOPT=1
|
||||
fi
|
||||
|
||||
# build libpcap
|
||||
tar -xvzf libpcap-1.9.1.tar.gz
|
||||
|
@ -37,10 +39,12 @@ cmake -DBUILD_SHARED_LIBS=OFF ..
|
|||
make install
|
||||
cd ../..
|
||||
|
||||
if [[ "$SANITIZER" != "memory" ]]; then
|
||||
#Re-enable code instrumentation
|
||||
export CFLAGS="${CFLAGS_SAVE}"
|
||||
export CXXFLAGS="${CXXFLAGS_SAVE}"
|
||||
unset AFL_NOOPT
|
||||
fi
|
||||
|
||||
# build project
|
||||
cd ndpi
|
||||
|
|
Loading…
Reference in New Issue