From: Ralph Corderoy Date: Fri, 28 Apr 2017 16:00:54 +0000 (+0100) Subject: valgrind: Add suppression for dbm_open(3)'s write(2). X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/d07c6759a3b5b936e790834147ab7bd867645d4f valgrind: Add suppression for dbm_open(3)'s write(2). 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. --- diff --git a/test/valgrind.supp b/test/valgrind.supp index 2726f42e..4da69de8 100644 --- a/test/valgrind.supp +++ b/test/valgrind.supp @@ -46,6 +46,20 @@ 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