Add LeakSanitizer suppressions to skip libfontconfig warnings

This commit is contained in:
Philippe Teuwen 2020-10-07 02:05:16 +02:00
parent eb05cadb1c
commit 5305c33ec1
2 changed files with 7 additions and 2 deletions

1
.lsan_suppressions Normal file
View file

@ -0,0 +1 @@
leak:libfontconfig.so

8
pm3
View file

@ -23,7 +23,11 @@ else
# hope it's installed somehow, still not sure where fw images are...
CLIENT="proxmark3"
fi
EVALENV=""
# LeakSanitizer suppressions
if [ -e .lsan_suppressions ]; then
EVALENV="export LSAN_OPTIONS=suppressions=.lsan_suppressions"
fi
PM3LIST=()
SHOWLIST=false
@ -212,7 +216,7 @@ function get_pm3_list_WSL {
SCRIPT=$(basename -- "$0")
if [ "$SCRIPT" = "pm3" ]; then
CMD() { $CLIENT "$@"; }
CMD() { eval "$EVALENV"; $CLIENT "$@"; }
HELP() {
cat << EOF