From 1ed96d5f0f9d587f0ef6e532adb2423ac5a0c0a8 Mon Sep 17 00:00:00 2001 From: Jordan Henderson Date: Wed, 23 Aug 2023 23:00:44 -0500 Subject: [PATCH] Fix an issue with use of uninitialized memory in trefer_deprec.c test --- test/trefer_deprec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/trefer_deprec.c b/test/trefer_deprec.c index f39e93cec3b..209708bbd12 100644 --- a/test/trefer_deprec.c +++ b/test/trefer_deprec.c @@ -772,6 +772,7 @@ test_reference_region(H5F_libver_t libver_low, H5F_libver_t libver_high) CHECK(ret, FAIL, "H5Dread"); /* Try to read an unaddressed dataset */ + memset(&undef_reg, 0, sizeof(undef_reg)); dset2 = H5Rdereference2(dset1, dapl_id, H5R_DATASET_REGION, undef_reg); VERIFY(dset2, FAIL, "H5Rdereference2 haddr_undef");