X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gnu%2Fmemchr.valgrind;fp=gnu%2Fmemchr.valgrind;h=60f247e10dca1e6fc15d637edc2de0ea1ed5e23b;hb=22f1eb8bc17e5be72dd23d42d6aaa60196ac22e6;hp=0000000000000000000000000000000000000000;hpb=00fa13ff3f2d5b6e2a94c5e948c38616ff7ad37a;p=debian%2Ftar diff --git a/gnu/memchr.valgrind b/gnu/memchr.valgrind new file mode 100644 index 00000000..60f247e1 --- /dev/null +++ b/gnu/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 +}