Skip to content

Commit 092dbc0

Browse files
committed
librsvg: use suppressions file instead of disabling all leak checks
1 parent a54a9d6 commit 092dbc0

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+
# Copy suppressions file for fuzz targets
97+
cp "$SRC/librsvg/tools/lsan.supp" "$OUT/"
98+
9699
# Create dictionary files for fuzz targets
97100
cat "$SRC/fuzzing/dictionaries/"{css,svg,xml}.dict > "$OUT/render_document.dict"
98101

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)