diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2019-06-25 15:41:30 +0200 |
---|---|---|
committer | jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> | 2019-06-25 06:41:30 -0700 |
commit | 0cf9e8245a0adde0cbb53fe710c1dd1e9a33a86e (patch) | |
tree | a6496e89aefdb0d8e8e25b517f3f6a2f55226722 | |
parent | e30d7963a510f4f1ea6e1d229845d3f6d9f2f0f8 (diff) |
[libxslt] Additional sanitizers, no unneeded modules (#2539)
- Enable unsigned-integer-overflow and float-divide-by-zero sanitizers.
- Disable some unneeded libxml2 components.
- Disable debugging and profiling code in libxslt to improve
coverage stats.
-rwxr-xr-x | projects/libxslt/build.sh | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/projects/libxslt/build.sh b/projects/libxslt/build.sh index 25700085..bdf0e00e 100755 --- a/projects/libxslt/build.sh +++ b/projects/libxslt/build.sh @@ -17,8 +17,8 @@ ################################################################################ if [ "$SANITIZER" = undefined ]; then - export CFLAGS="$CFLAGS -fno-sanitize=unsigned-integer-overflow,float-divide-by-zero" - export CXXFLAGS="$CXXFLAGS -fno-sanitize=unsigned-integer-overflow,float-divide-by-zero" + export CFLAGS="$CFLAGS -fsanitize=unsigned-integer-overflow -fno-sanitize-recover=unsigned-integer-overflow" + export CXXFLAGS="$CXXFLAGS -fsanitize=unsigned-integer-overflow -fno-sanitize-recover=unsigned-integer-overflow" fi if [ "$SANITIZER" = memory ]; then @@ -31,12 +31,32 @@ else fi cd ../libxml2 -./autogen.sh --without-python --disable-shared +./autogen.sh \ + --disable-shared \ + --without-c14n \ + --without-legacy \ + --without-push \ + --without-python \ + --without-reader \ + --without-regexps \ + --without-sax1 \ + --without-schemas \ + --without-schematron \ + --without-valid \ + --without-writer \ + --without-zlib \ + --without-lzma make -j$(nproc) V=1 cd ../libxslt -./autogen.sh --without-python $CRYPTO_CONF --disable-shared \ - --with-libxml-src=../libxml2 +./autogen.sh \ + --with-libxml-src=../libxml2 \ + --disable-shared \ + --without-python \ + $CRYPTO_CONF \ + --without-debug \ + --without-debugger \ + --without-profiler make -j$(nproc) V=1 for file in xpath xslt fuzz; do |