From 877dfaaad78242cc7aa7fdb1beb60a5e05800928 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Fri, 9 Oct 2015 23:55:35 -0500 Subject: [svn-r28024] Description: Clear buffer for driver info block before writing it to the file. (Avoids 'uninitialized memory read' warning from valgrind) Tested on: MacOSX/64 10.10.5 (amazon) w/serial & valgrind (too minor for h5committest) --- src/H5Fsuper.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/H5Fsuper.c b/src/H5Fsuper.c index 50f6b06..c6b1c83 100644 --- a/src/H5Fsuper.c +++ b/src/H5Fsuper.c @@ -934,6 +934,7 @@ H5F__super_init(H5F_t *f, hid_t dxpl_id) HDassert(driver_size <= H5F_MAX_DRVINFOBLOCK_SIZE); /* Encode driver-specific data */ + HDmemset(dbuf, 0, sizeof(dbuf)); if(H5FD_sb_encode(f->shared->lf, info.name, dbuf) < 0) HGOTO_ERROR(H5E_FILE, H5E_CANTINIT, FAIL, "unable to encode driver information") -- cgit v0.12