From 52c0df1d5052296200d1db607ba4f6bd6eb35f4d Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Sun, 12 Mar 2017 16:59:23 +0100 Subject: [PATCH] Clear any struct padding in idbuf --- libraries/liblmdb/mdb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index e2b48589e0..59e3d938b1 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -5151,6 +5151,7 @@ mdb_env_setup_locks(MDB_env *env, MDB_name *fname, int mode, int *excl) #define MDB_SHORT_SEMNAMES 1 /* limited to 14 chars */ #endif if (fstat(env->me_lfd, &stbuf)) goto fail_errno; + memset(&idbuf, 0, sizeof(idbuf)); idbuf.dev = stbuf.st_dev; idbuf.ino = stbuf.st_ino; env->me_txns->mti_mutexid = mdb_hash(&idbuf, sizeof(idbuf)) -- 2.39.5