X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=lib%2Fmemchr.valgrind;fp=lib%2Fmemchr.valgrind;h=60f247e10dca1e6fc15d637edc2de0ea1ed5e23b;hp=0000000000000000000000000000000000000000;hb=cff51866dd4b4de7b2f70676fa26b31c31e216d7;hpb=227daa74150e58de8a941f9c8e1f4f9f4035d1c3 diff --git a/lib/memchr.valgrind b/lib/memchr.valgrind new file mode 100644 index 00000000..60f247e1 --- /dev/null +++ b/lib/memchr.valgrind @@ -0,0 +1,14 @@ +# Suppress a valgrind message about use of uninitialized memory in memchr(). +# POSIX states that when the character is found, memchr must not read extra +# bytes in an overestimated length (for example, where memchr is used to +# implement strnlen). However, we use a safe word read to provide a speedup. +{ + memchr-value4 + Memcheck:Value4 + fun:rpl_memchr +} +{ + memchr-value8 + Memcheck:Value8 + fun:rpl_memchr +}