* lib/rawmemchr.valgrind: New file.
* lib/strchrnul.valgrind: Likewise.
* modules/rawmemchr (Files): Distribute new file.
* modules/strchrnul (Files): Likewise.
Suggested by Bruno Haible.
Signed-off-by: Eric Blake <ebb9@byu.net>
+2008-04-29 Eric Blake <ebb9@byu.net>
+
+ Silence valgrind on safe reads beyond potential array bounds.
+ * lib/rawmemchr.valgrind: New file.
+ * lib/strchrnul.valgrind: Likewise.
+ * modules/rawmemchr (Files): Distribute new file.
+ * modules/strchrnul (Files): Likewise.
+ Suggested by Bruno Haible.
+
2008-04-29 Bruno Haible <bruno@clisp.org>
* lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
--- /dev/null
+# Suppress a valgrind message about use of uninitialized memory in rawmemchr().
+# This use is OK because it provides only a speedup.
+{
+ rawmemchr-value4
+ Memcheck:Value4
+ fun:rawmemchr
+}
+{
+ rawmemchr-value8
+ Memcheck:Value8
+ fun:rawmemchr
+}
--- /dev/null
+# Suppress a valgrind message about use of uninitialized memory in strchrnul().
+# This use is OK because it provides only a speedup.
+{
+ strchrnul-value4
+ Memcheck:Value4
+ fun:strchrnul
+}
+{
+ strchrnul-value8
+ Memcheck:Value8
+ fun:strchrnul
+}
Files:
lib/rawmemchr.c
+lib/rawmemchr.valgrind
m4/rawmemchr.m4
Depends-on:
Files:
lib/strchrnul.c
+lib/strchrnul.valgrind
m4/strchrnul.m4
Depends-on: