Skip to content

Commit

Permalink
Fix an issue with use of uninitialized memory in trefer_deprec.c test (
Browse files Browse the repository at this point in the history
  • Loading branch information
jhendersonHDF committed Sep 1, 2023
1 parent 3efcbfb commit 5217dd5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/trefer_deprec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 5217dd5

Please sign in to comment.