Skip to content

Commit

Permalink
Zero out the values in tconv_buf in H5Dscatgath_read().
Browse files Browse the repository at this point in the history
  • Loading branch information
vchoi-hdfgroup committed Sep 18, 2023
1 parent a869d34 commit 759e3a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/H5Dscatgath.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,8 @@ H5D__scatgath_read(const H5D_io_info_t *io_info, const H5D_dset_io_info_t *dset_
(size_t)MIN(dset_info->type_info.request_nelmts, (dset_info->nelmts - smine_start));
}

memset(tmp_buf, 0, smine_nelmts * MAX(dset_info->type_info.src_type_size, dset_info->type_info.dst_type_size));

/*
* Gather the data from disk into the datatype conversion
* buffer. Also gather data from application to background buffer
Expand Down
2 changes: 1 addition & 1 deletion test/cmpd_dset.c
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ test_compounds_selection_io(void)
for (set_cache = FALSE; set_cache <= FALSE; set_cache++) {
for (set_fillvalue = FALSE; set_fillvalue <= FALSE; set_fillvalue++) {
for (select_io = FALSE; select_io <= FALSE; select_io++) {
for (mwbuf = FALSE; mwbuf <= TRUE; mwbuf++) {
for (mwbuf = TRUE; mwbuf <= TRUE; mwbuf++) {
for (set_buf = FALSE; set_buf <= FALSE; set_buf++) {

if ((dxpl = H5Pcreate(H5P_DATASET_XFER)) < 0)
Expand Down

0 comments on commit 759e3a1

Please sign in to comment.