X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gnulib%2Fimport%2Fmemchr.valgrind;fp=gnulib%2Fimport%2Fmemchr.valgrind;h=60f247e10dca1e6fc15d637edc2de0ea1ed5e23b;hb=73cc72729a184f00bf6fc4d74684a8516ba6b683;hp=0000000000000000000000000000000000000000;hpb=f568655424ad268c8c5df3f56e4e19a86b16623d;p=deliverable%2Fbinutils-gdb.git diff --git a/gnulib/import/memchr.valgrind b/gnulib/import/memchr.valgrind new file mode 100644 index 0000000000..60f247e10d --- /dev/null +++ b/gnulib/import/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 +}