diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2023-09-01 17:37:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-01 17:37:07 (GMT) |
commit | 5217dd5f61a0b537417816e3b1143320f976396b (patch) | |
tree | 26f960105e191a4ba1e45e767c733b69b4c4eaff /test | |
parent | 3efcbfb1f938fa05f6c648d9d594644912053096 (diff) | |
download | hdf5-5217dd5f61a0b537417816e3b1143320f976396b.zip hdf5-5217dd5f61a0b537417816e3b1143320f976396b.tar.gz hdf5-5217dd5f61a0b537417816e3b1143320f976396b.tar.bz2 |
Fix an issue with use of uninitialized memory in trefer_deprec.c test (#3422) (#3471)
Diffstat (limited to 'test')
-rw-r--r-- | test/trefer_deprec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/trefer_deprec.c b/test/trefer_deprec.c index f39e93c..209708b 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"); |