Skip to content

Commit 5305c33

Browse files
committed
Add LeakSanitizer suppressions to skip libfontconfig warnings
1 parent eb05cad commit 5305c33

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.lsan_suppressions

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

pm3

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ else
2323
# hope it's installed somehow, still not sure where fw images are...
2424
CLIENT="proxmark3"
2525
fi
26-
26+
EVALENV=""
27+
# LeakSanitizer suppressions
28+
if [ -e .lsan_suppressions ]; then
29+
EVALENV="export LSAN_OPTIONS=suppressions=.lsan_suppressions"
30+
fi
2731
PM3LIST=()
2832
SHOWLIST=false
2933

@@ -212,7 +216,7 @@ function get_pm3_list_WSL {
212216
SCRIPT=$(basename -- "$0")
213217

214218
if [ "$SCRIPT" = "pm3" ]; then
215-
CMD() { $CLIENT "$@"; }
219+
CMD() { eval "$EVALENV"; $CLIENT "$@"; }
216220
HELP() {
217221
cat << EOF
218222

0 commit comments

Comments
 (0)