diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2020-08-17 22:51:15 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2020-08-17 22:51:15 (GMT) |
commit | 5bb893a2c2bcba6e8bebc99ee1a506599111b716 (patch) | |
tree | 2376094a0e27ae00fa4e4e06004b0e832a2882ea /test | |
parent | 0f9c22edc75715bd0a6e702b1c8c929650065d70 (diff) | |
download | hdf5-5bb893a2c2bcba6e8bebc99ee1a506599111b716.zip hdf5-5bb893a2c2bcba6e8bebc99ee1a506599111b716.tar.gz hdf5-5bb893a2c2bcba6e8bebc99ee1a506599111b716.tar.bz2 |
Fix HDFFV-11101
Description
Added initialization to local structs in the src function
H5MF_settle_raw_data_fsm() and the test function test_bt2_hdr_fd()
to prevent the following error in two different occurrences:
MemorySanitizer: use-of-uninitialized-value
Platforms tested:
Linux/64 (jelly)
Linux/64 (platypus)
Diffstat (limited to 'test')
-rw-r--r-- | test/dsets.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/dsets.c b/test/dsets.c index d5c11be..ae917cc 100644 --- a/test/dsets.c +++ b/test/dsets.c @@ -11334,6 +11334,9 @@ test_bt2_hdr_fd(const char *env_h5_driver, hid_t fapl) TESTING("Version 2 B-tree chunk index header flush dependencies handled correctly"); + /* Initialize struct */ + HDmemset(&info, 0, sizeof(info)); + /* Skip this test if SWMR I/O is not supported for the VFD specified * by the environment variable. */ |