1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Add Valgrind suppression 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/Makefile.am: Add valgrind-suppressions to EXTRA_DIST.
This commit is contained in:
Hubert Tarasiuk 2015-04-06 12:33:37 +02:00 committed by Tim Ruehsen
parent bef5945202
commit f4072e5d0b
3 changed files with 17 additions and 2 deletions

View File

@ -131,7 +131,7 @@ PX_TESTS = \
EXTRA_DIST = FTPServer.pm FTPTest.pm HTTPServer.pm HTTPTest.pm \
WgetTests.pm WgetFeature.pm WgetFeature.cfg $(PX_TESTS) \
certs
certs valgrind-suppressions
check_PROGRAMS = unit-tests
unit_tests_SOURCES =

View File

@ -14,6 +14,12 @@ use POSIX qw(locale_h);
use locale;
our $WGETPATH = '../src/wget';
our $VALGRIND_SUPP_FILE = Cwd::getcwd();
if (defined $ENV{'srcdir'}) {
$VALGRIND_SUPP_FILE = $VALGRIND_SUPP_FILE
. "/" . $ENV{'srcdir'};
}
$VALGRIND_SUPP_FILE = $VALGRIND_SUPP_FILE . '/valgrind-suppressions';
my @unexpected_downloads = ();
@ -122,7 +128,8 @@ sub run
elsif ($valgrind == 1)
{
$cmdline =
'valgrind --error-exitcode=301 --leak-check=yes --track-origins=yes '
'valgrind --suppressions=' . $VALGRIND_SUPP_FILE
. ' --error-exitcode=301 --leak-check=yes --track-origins=yes '
. $cmdline;
}
else

View File

@ -0,0 +1,8 @@
{
False positive in libidn.so. More info: https://bugzilla.redhat.com/show_bug.cgi?id=678518
Memcheck:Addr4
fun:idna_to_ascii_4z
fun:idna_to_ascii_8z
fun:idn_encode
fun:url_parse
}