From 9221dca64f0c8b5de72727491e41cf63e902eaab Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 03:16:24 +0200 Subject: Adding upstream version 2.8.5. Signed-off-by: Daniel Baumann --- gl/lib/memchr.valgrind | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 gl/lib/memchr.valgrind (limited to 'gl/lib/memchr.valgrind') diff --git a/gl/lib/memchr.valgrind b/gl/lib/memchr.valgrind new file mode 100644 index 0000000..60f247e --- /dev/null +++ b/gl/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 +} -- cgit v1.2.3