Avoid valgrind error reports from libunistring.
authorBruno Haible <bruno@clisp.org>
Wed, 19 May 2010 20:11:00 +0000 (22:11 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 19 May 2010 20:11:00 +0000 (22:11 +0200)
ChangeLog
lib/libunistring.valgrind [new file with mode: 0644]
modules/libunistring
modules/libunistring-optional

index 76f0077..5bc2c09 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-05-19  Bruno Haible  <bruno@clisp.org>
+
+       Avoid valgrind error reports from libunistring.
+       * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
+       * modules/libunistring (Files): Add it.
+       * modules/libunistring-optional (Files): Likewise.
+
 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
             Bruno Haible  <bruno@clisp.org>
 
diff --git a/lib/libunistring.valgrind b/lib/libunistring.valgrind
new file mode 100644 (file)
index 0000000..aba265a
--- /dev/null
@@ -0,0 +1,9 @@
+# Suppress valgrind messages in an installed libunistring.
+
+# Suppress a valgrind message about use of uninitialized memory in freea().
+# This use is OK because it provides only a speedup.
+{
+    libunistring_freea
+    Memcheck:Cond
+    fun:libunistring_freea
+}
index 1de28df..5073584 100644 (file)
@@ -4,6 +4,7 @@ Unicode string functions.
 Files:
 m4/libunistring.m4
 m4/absolute-header.m4
+lib/libunistring.valgrind
 
 Depends-on:
 havelib
index 0493600..212842a 100644 (file)
@@ -5,6 +5,7 @@ Files:
 m4/libunistring-optional.m4
 m4/libunistring.m4
 m4/absolute-header.m4
+lib/libunistring.valgrind
 
 Depends-on:
 havelib