From 24fca55af1396ddeb2351555a1222ef83156e2c2 Mon Sep 17 00:00:00 2001 From: Hubert Tarasiuk Date: Mon, 6 Apr 2015 12:33:37 +0200 Subject: [PATCH 2/2] Add Valgrind suppresion for libidn.so at idna_to_ascii_4z. * tests/WgetTests.pm (run): Include suppression file when running Valgrind. * tests/valgrind-suppressions: Add suppression for idn_to_ascii_4z. --- tests/WgetTests.pm | 2 +- tests/valgrind-suppressions | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 tests/valgrind-suppressions diff --git a/tests/WgetTests.pm b/tests/WgetTests.pm index 3d3b9dd..5dd5214 100644 --- a/tests/WgetTests.pm +++ b/tests/WgetTests.pm @@ -122,7 +122,7 @@ sub run elsif ($valgrind == 1) { $cmdline = - 'valgrind --error-exitcode=301 --leak-check=yes --track-origins=yes ' + 'valgrind --suppressions=../../valgrind-suppressions --error-exitcode=301 --leak-check=yes --track-origins=yes ' . $cmdline; } else diff --git a/tests/valgrind-suppressions b/tests/valgrind-suppressions new file mode 100644 index 0000000..160e234 --- /dev/null +++ b/tests/valgrind-suppressions @@ -0,0 +1,8 @@ +{ + False positive in libidn.so. + Memcheck:Addr4 + fun:idna_to_ascii_4z + fun:idna_to_ascii_8z + fun:idn_encode + fun:url_parse +} -- 2.3.5