poppler: Re-enable the memory sanitizer (#7299)

This commit is contained in:
tsdgeos 2022-02-18 15:48:30 +01:00 committed by GitHub
parent 4631ed8aab
commit a215f3fd82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -59,7 +59,7 @@ elif [ "$SANITIZER" = "coverage" ]; then
CXXFLAGS="${CXXFLAGS/"-fprofile-instr-generate"/" "}"
fi
./nss/build.sh $nss_flag --disable-tests --static -v -Dmozilla_client=1 -Dzlib_libs=$PREFIX/lib/libz.a
./nss/build.sh $nss_flag --disable-tests --static -v -Dmozilla_client=1 -Dzlib_libs=$PREFIX/lib/libz.a -Dsign_libs=0
CFLAGS="$SAVE_CFLAGS"
CXXFLAGS="$SAVE_CXXFLAGS"
@ -150,6 +150,8 @@ sed -i -e "s/QMAKE_LFLAGS += -stdlib=libc++/QMAKE_LFLAGS += -stdlib=li
sed -i -e "s/TARGET = qtharfbuzz/TARGET = qtharfbuzz\nQMAKE_CXXFLAGS += -fno-sanitize=vptr/g" src/3rdparty/harfbuzz-ng/harfbuzz-ng.pro
# make qmake compile faster
sed -i -e "s/MAKE\")/MAKE\" -j$(nproc))/g" configure
# Fix memory stuff in qt 5.15 unfixable since branch is closed now
sed -i -e "s/struct statx statxBuffer/struct statx statxBuffer = {}/g" src/corelib/io/qfilesystemengine_unix.cpp
./configure --glib=no --libpng=qt -opensource -confirm-license -static -no-opengl -no-icu -no-pkg-config -platform linux-clang-libc++ -nomake tests -nomake examples -prefix $PREFIX -D QT_NO_DEPRECATED_WARNINGS
make -j$(nproc)
make install

View File

@ -3,10 +3,9 @@ language: c++
primary_contact: tsdgeos@gmail.com
sanitizers:
- address
# Disabled MSAN because of https://github.com/google/oss-fuzz/issues/6294
# - memory
- memory
- undefined
auto_ccs:
- jonathan@titanous.com
- adam.reichold@t-online.de
main_repo: 'https://anongit.freedesktop.org/git/poppler/poppler.git'
main_repo: 'https://anongit.freedesktop.org/git/poppler/poppler.git'