Skip to content

Commit 0528aa3

Browse files
committed
librsvg: use suppressions file instead of disabling all leak checks
1 parent 85697ac commit 0528aa3

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

projects/librsvg/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ cp target/x86_64-unknown-linux-gnu/release/render_document "$OUT/"
9393
# Copy options files for fuzz targets
9494
cp "$SRC"/*.options "$OUT/"
9595

96+
# Create suppressions file for fuzz targets
97+
echo "leak:FcPatternObjectInsertElt" > "$OUT/lsan.supp"
98+
9699
# Build a seed corpus consisting of all the SVGs from the librsvg repo
97100
CORPUS_DIR="$WORK/corpus"
98101
mkdir -p "$CORPUS_DIR"
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1+
[lsan]
12
# Suppress spurious leak reports:
23
# https://gnome.pages.gitlab.gnome.org/librsvg/devel-docs/memory_leaks.html
3-
4-
[asan]
5-
detect_leaks = 0
6-
7-
[libfuzzer]
8-
detect_leaks = 0
4+
suppressions = lsan.supp

0 commit comments

Comments
 (0)