]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
scripts: Move lsan_suppressions.txt out of oss-fuzz subdir
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 6 Mar 2026 09:01:12 +0000 (09:01 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 6 Mar 2026 09:43:18 +0000 (09:43 +0000)
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

.gitlab-ci.d/buildtest.yml
scripts/lsan_suppressions.txt [moved from scripts/oss-fuzz/lsan_suppressions.txt with 100% similarity]
tests/docker/test-fuzz

index 6ad35945222b10e1fd39831185f133a6080fa4b6..4b1949a3a525fe44d098a8a77819d0a22e02dcf5 100644 (file)
@@ -614,7 +614,7 @@ build-oss-fuzz:
     IMAGE: fedora
   script:
     - mkdir build-oss-fuzz
-    - export LSAN_OPTIONS=suppressions=scripts/oss-fuzz/lsan_suppressions.txt
+    - export LSAN_OPTIONS=suppressions=scripts/lsan_suppressions.txt
     - CC="clang" CXX="clang++" CFLAGS="-fsanitize=address"
       ./scripts/oss-fuzz/build.sh
     - export ASAN_OPTIONS="fast_unwind_on_malloc=0"
index 7e506ae1f6e14932a9f11515f0138b664ded23ca..d2bdc8afbaab2026cf210025e77f6f57e4fd5c1f 100755 (executable)
@@ -18,7 +18,7 @@ cd "$BUILD_DIR"
 cp -a $QEMU_SRC .
 cd src
 mkdir build-oss-fuzz
-export LSAN_OPTIONS=suppressions=scripts/oss-fuzz/lsan_suppressions.txt
+export LSAN_OPTIONS=suppressions=scripts/lsan_suppressions.txt
 env CC="clang" CXX="clang++" CFLAGS="-fsanitize=address" ./scripts/oss-fuzz/build.sh
 export ASAN_OPTIONS="fast_unwind_on_malloc=0"
 for fuzzer in $(find ./build-oss-fuzz/DEST_DIR/ -executable -type f | grep -v slirp); do