From fd2e2a2104f353fb649362174e24a99eafcffb6f Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Fri, 9 Feb 2018 19:18:29 +0100 Subject: [PATCH] [gnutls] unconditionally disable assembler in gmp (#833) Signed-off-by: Nikos Mavrogiannopoulos --- projects/gnutls/build.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/projects/gnutls/build.sh b/projects/gnutls/build.sh index 649b0b59d..7c64ca164 100755 --- a/projects/gnutls/build.sh +++ b/projects/gnutls/build.sh @@ -35,10 +35,11 @@ ASAN_OPTIONS=detect_leaks=0 \ make -j$(nproc) make install -GMP_CONFIGURE_FLAGS="" -if [[ $CFLAGS = *sanitize=memory* ]]; then - GMP_CONFIGURE_FLAGS="--disable-assembly --disable-fat" -fi +# always disable assembly in GMP to avoid issues due to SIGILL +# https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3119 +# https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3159 +GMP_CONFIGURE_FLAGS="--disable-assembly --disable-fat" + cd $SRC/gmp bash .bootstrap ASAN_OPTIONS=detect_leaks=0 \