X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=gnulib%2Fmemchr.valgrind;fp=gnulib%2Fmemchr.valgrind;h=60f247e10dca1e6fc15d637edc2de0ea1ed5e23b;hb=538ae376635af705ebcd686f3b4b7b72a6652985;hp=0000000000000000000000000000000000000000;hpb=11425c69eb58b6103beb68adc13912735ba36975;p=debian%2Famanda diff --git a/gnulib/memchr.valgrind b/gnulib/memchr.valgrind new file mode 100644 index 0000000..60f247e --- /dev/null +++ b/gnulib/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 +}