diff --git a/projects/lua/build.sh b/projects/lua/build.sh index c1bb5dc019d9d..da7328d1c919f 100755 --- a/projects/lua/build.sh +++ b/projects/lua/build.sh @@ -65,6 +65,12 @@ esac export LSAN_OPTIONS="verbosity=1:log_threads=1" +# Workaround for a LeakSanitizer crashes, +# see https://github.com/google/oss-fuzz/issues/11798. +if [ "$ARCHITECTURE" = "aarch64" ]; then + export ASAN_OPTIONS=detect_leaks=0 +fi + : ${LD:="${CXX}"} : ${LDFLAGS:="${CXXFLAGS}"} # to make sure we link with sanitizer runtime