]> diplodocus.org Git - nmh/commitdiff
valgrind: Add suppression for dbm_open(3)'s write(2).
authorRalph Corderoy <ralph@inputplus.co.uk>
Fri, 28 Apr 2017 16:00:54 +0000 (17:00 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Fri, 28 Apr 2017 16:00:54 +0000 (17:00 +0100)
It writes bytes from an area it mallocs, but doesn't set all of those
bytes first.  See with gdbm 1.13-1 on Arch Linux.

test/valgrind.supp

index 2726f42..4da69de 100644 (file)
    fun:getaddrinfo
 }
 
+{
+   gdbm 1.13-1 writes uninitialised bytes from malloc'd area to file
+   Memcheck:Param
+   write(buf)
+   fun:__write_nocancel
+   fun:_gdbm_full_write
+   fun:gdbm_fd_open
+   fun:dbm_open
+   fun:suppress_duplicates
+   fun:localmail
+   fun:main
+}
+
+
 {
    dyld libraryLocator on MacOS 10.11.6 (El Capitan)
    Memcheck:Cond