scripts: Move lsan_suppressions.txt out of oss-fuzz subdir
The oss-fuzz code uses an lsan_suppressions file to suppress certain leak-sanitizer cases that are known issues or not our code's bug. This is useful more widely than just for the fuzzer harness: if you want to build QEMU with the leak sanitizer enabled and run 'make check' then you will want to suppress some bogus leak reports. Move the file up a directory. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Yodel Eldar <yodel.eldar@yodel.dev> Message-id: 20260302092225.4088227-2-peter.maydell@linaro.org
Peter Maydell committed
Mar 6, 2026 at 09:01 UTC
e9f55f543fca5fbdb1b1eed033d4a79e06c9f54d
3 files changed
+2
-2
.gitlab-ci.d/buildtest.yml
+1
-1
@@ -614,7 +614,7 @@ build-oss-fuzz:
614
IMAGE: fedora
615
script:
616
- mkdir build-oss-fuzz
617
- - export LSAN_OPTIONS=suppressions=scripts/oss-fuzz/lsan_suppressions.txt
617
+ - export LSAN_OPTIONS=suppressions=scripts/lsan_suppressions.txt
618
- CC="clang" CXX="clang++" CFLAGS="-fsanitize=address"
619
./scripts/oss-fuzz/build.sh
620
- export ASAN_OPTIONS="fast_unwind_on_malloc=0"
scripts/lsan_suppressions.txt
renamed
tests/docker/test-fuzz
+1
-1
@@ -18,7 +18,7 @@ cd "$BUILD_DIR"
18
cp -a $QEMU_SRC .
19
cd src
20
mkdir build-oss-fuzz
21
-export LSAN_OPTIONS=suppressions=scripts/oss-fuzz/lsan_suppressions.txt
21
+export LSAN_OPTIONS=suppressions=scripts/lsan_suppressions.txt
22
env CC="clang" CXX="clang++" CFLAGS="-fsanitize=address" ./scripts/oss-fuzz/build.sh
23
export ASAN_OPTIONS="fast_unwind_on_malloc=0"
24
for fuzzer in $(find ./build-oss-fuzz/DEST_DIR/ -executable -type f | grep -v slirp); do