From 74da141e618ef99959d509cb2e7be35a348a39db Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Wed, 7 Apr 2010 21:11:46 -0400 Subject: Sync with the latest Gnulib code (177f525) Signed-off-by: Thomas Guyot-Sionnest --- gl/memchr.valgrind | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 gl/memchr.valgrind (limited to 'gl/memchr.valgrind') diff --git a/gl/memchr.valgrind b/gl/memchr.valgrind new file mode 100644 index 00000000..60f247e1 --- /dev/null +++ b/gl/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 +} -- cgit v1.2.3-74-g34f1