summaryrefslogtreecommitdiff
path: root/lib/memchr.valgrind
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2009-07-05 23:57:37 +0200
committerLudovic Courtès <ludo@gnu.org>2009-07-05 23:57:37 +0200
commitc4b681fdacc57de0b2a9584c1f6a195cf2629b32 (patch)
tree6314adbbde6f9e64282120ad1d43db9034f41034 /lib/memchr.valgrind
parent5374ec9c281c2e77c283f60afd55e47d86e3b898 (diff)
downloadguile-c4b681fdacc57de0b2a9584c1f6a195cf2629b32.tar.gz
Use Gnulib's `vsnprintf' module.
* m4/gnulib-cache.m4: Use `vsnprintf', needed by `deprecation.c'.
Diffstat (limited to 'lib/memchr.valgrind')
-rw-r--r--lib/memchr.valgrind14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/memchr.valgrind b/lib/memchr.valgrind
new file mode 100644
index 000000000..60f247e10
--- /dev/null
+++ b/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
+}