Skip to content

Commit 38e1b48

Browse files
committed
ci: suppress known libass fontconfig LSAN leak
libfontconfig intentionally retains global state for the process lifetime and this isn't fixable without risking UAF in other fontconfig users. See: libass/libass#924
1 parent 5e84788 commit 38e1b48

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ jobs:
395395
- name: Run meson tests
396396
id: tests
397397
run: |
398+
export LSAN_OPTIONS="suppressions=${GITHUB_WORKSPACE}/.lsan_suppressions"
398399
meson test -C build
399400
400401
- name: Print meson test log
@@ -575,6 +576,7 @@ jobs:
575576
vulkan-headers \
576577
wayland-protocols
577578
./ci/build-freebsd.sh
579+
export LSAN_OPTIONS="suppressions=${GITHUB_WORKSPACE}/.lsan_suppressions"
578580
if ! meson test -C build; then
579581
cat ./build/meson-logs/testlog.txt
580582
exit 1
@@ -664,6 +666,7 @@ jobs:
664666
- name: Run meson tests
665667
id: tests
666668
run: |
669+
export LSAN_OPTIONS="suppressions=${GITHUB_WORKSPACE}/.lsan_suppressions"
667670
meson test -C build
668671
669672
- name: Print meson test log

.lsan_suppressions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
leak:libfontconfig.so

0 commit comments

Comments
 (0)