From d07c6759a3b5b936e790834147ab7bd867645d4f Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Fri, 28 Apr 2017 17:00:54 +0100 Subject: [PATCH] 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. --- test/valgrind.supp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 -- 2.56.0