From f86c6124a8e094309dbf58d3e9aae96e4aca0bb2 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 29 Nov 2017 06:52:43 -0500 Subject: [PATCH] Add Valgrind suppression file (GH #543) --- GNUmakefile | 10 +++++----- cryptopp.supp | 5 +++++ 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 cryptopp.supp diff --git a/GNUmakefile b/GNUmakefile index 1fe91219..6267391d 100755 --- a/GNUmakefile +++ b/GNUmakefile @@ -763,7 +763,7 @@ gcov codecov: libcryptopp.a cryptest.exe # Should use CXXFLAGS="-g3 -O1" .PHONY: valgrind valgrind: libcryptopp.a cryptest.exe - valgrind --track-origins=yes ./cryptest.exe v + valgrind --track-origins=yes --suppressions=cryptopp.supp ./cryptest.exe v .PHONY: test check test check: cryptest.exe @@ -938,11 +938,11 @@ endif .PHONY: trim trim: ifneq ($(IS_DARWIN),0) - sed -i '' -e's/[[:space:]]*$$//' *.txt *.sh .*.yml *.h *.cpp *.asm *.s *.sln *.vcxproj *.filters GNUmakefile GNUmakefile-cross + sed -i '' -e's/[[:space:]]*$$//' *.supp *.txt *.sh .*.yml *.h *.cpp *.asm *.s *.sln *.vcxproj *.filters GNUmakefile GNUmakefile-cross sed -i '' -e's/[[:space:]]*$$//' TestData/*.dat TestVectors/*.txt TestScripts/*.* make convert else - sed -i -e's/[[:space:]]*$$//' *.txt *.sh .*.yml *.h *.cpp *.asm *.s *.sln *.vcxproj *.filters GNUmakefile GNUmakefile-cross + sed -i -e's/[[:space:]]*$$//' *.supp *.txt *.sh .*.yml *.h *.cpp *.asm *.s *.sln *.vcxproj *.filters GNUmakefile GNUmakefile-cross sed -i -e's/[[:space:]]*$$//' TestData/*.dat TestVectors/*.txt TestScripts/*.* make convert endif @@ -950,11 +950,11 @@ endif .PHONY: convert convert: @-$(CHMOD) 0700 TestVectors/ TestData/ TestScripts/ - @-$(CHMOD) 0600 $(TEXT_FILES) .*.yml *.asm *.s *.zip TestVectors/*.txt TestData/*.dat TestScripts/*.* + @-$(CHMOD) 0600 $(TEXT_FILES) *.supp .*.yml *.asm *.s *.zip TestVectors/*.txt TestData/*.dat TestScripts/*.* @-$(CHMOD) 0700 $(EXEC_FILES) *.sh *.cmd TestScripts/*.sh TestScripts/*.cmd @-$(CHMOD) 0700 *.cmd *.sh GNUmakefile GNUmakefile-cross TestScripts/*.sh -unix2dos --keepdate --quiet $(TEXT_FILES) .*.yml *.asm *.cmd TestScripts/*.* - -dos2unix --keepdate --quiet GNUmakefile GNUmakefile-cross *.s *.sh *.mapfile TestScripts/*.sh + -dos2unix --keepdate --quiet GNUmakefile GNUmakefile-cross *.supp *.s *.sh *.mapfile TestScripts/*.sh ifneq ($(IS_DARWIN),0) @-xattr -c * endif diff --git a/cryptopp.supp b/cryptopp.supp new file mode 100644 index 00000000..b7c90b80 --- /dev/null +++ b/cryptopp.supp @@ -0,0 +1,5 @@ +{ + __memcmp_sse4_1 + Memcheck:Cond + fun:__memcmp_sse4_1 +}