Skip to content

Commit f86c612

Browse files
committed
Add Valgrind suppression file (GH weidai11#543)
1 parent 33caa1e commit f86c612

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

GNUmakefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ gcov codecov: libcryptopp.a cryptest.exe
763763
# Should use CXXFLAGS="-g3 -O1"
764764
.PHONY: valgrind
765765
valgrind: libcryptopp.a cryptest.exe
766-
valgrind --track-origins=yes ./cryptest.exe v
766+
valgrind --track-origins=yes --suppressions=cryptopp.supp ./cryptest.exe v
767767

768768
.PHONY: test check
769769
test check: cryptest.exe
@@ -938,23 +938,23 @@ endif
938938
.PHONY: trim
939939
trim:
940940
ifneq ($(IS_DARWIN),0)
941-
sed -i '' -e's/[[:space:]]*$$//' *.txt *.sh .*.yml *.h *.cpp *.asm *.s *.sln *.vcxproj *.filters GNUmakefile GNUmakefile-cross
941+
sed -i '' -e's/[[:space:]]*$$//' *.supp *.txt *.sh .*.yml *.h *.cpp *.asm *.s *.sln *.vcxproj *.filters GNUmakefile GNUmakefile-cross
942942
sed -i '' -e's/[[:space:]]*$$//' TestData/*.dat TestVectors/*.txt TestScripts/*.*
943943
make convert
944944
else
945-
sed -i -e's/[[:space:]]*$$//' *.txt *.sh .*.yml *.h *.cpp *.asm *.s *.sln *.vcxproj *.filters GNUmakefile GNUmakefile-cross
945+
sed -i -e's/[[:space:]]*$$//' *.supp *.txt *.sh .*.yml *.h *.cpp *.asm *.s *.sln *.vcxproj *.filters GNUmakefile GNUmakefile-cross
946946
sed -i -e's/[[:space:]]*$$//' TestData/*.dat TestVectors/*.txt TestScripts/*.*
947947
make convert
948948
endif
949949

950950
.PHONY: convert
951951
convert:
952952
@-$(CHMOD) 0700 TestVectors/ TestData/ TestScripts/
953-
@-$(CHMOD) 0600 $(TEXT_FILES) .*.yml *.asm *.s *.zip TestVectors/*.txt TestData/*.dat TestScripts/*.*
953+
@-$(CHMOD) 0600 $(TEXT_FILES) *.supp .*.yml *.asm *.s *.zip TestVectors/*.txt TestData/*.dat TestScripts/*.*
954954
@-$(CHMOD) 0700 $(EXEC_FILES) *.sh *.cmd TestScripts/*.sh TestScripts/*.cmd
955955
@-$(CHMOD) 0700 *.cmd *.sh GNUmakefile GNUmakefile-cross TestScripts/*.sh
956956
-unix2dos --keepdate --quiet $(TEXT_FILES) .*.yml *.asm *.cmd TestScripts/*.*
957-
-dos2unix --keepdate --quiet GNUmakefile GNUmakefile-cross *.s *.sh *.mapfile TestScripts/*.sh
957+
-dos2unix --keepdate --quiet GNUmakefile GNUmakefile-cross *.supp *.s *.sh *.mapfile TestScripts/*.sh
958958
ifneq ($(IS_DARWIN),0)
959959
@-xattr -c *
960960
endif

cryptopp.supp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
__memcmp_sse4_1
3+
Memcheck:Cond
4+
fun:__memcmp_sse4_1
5+
}

0 commit comments

Comments
 (0)