diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2023-03-29 14:36:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-29 14:36:34 (GMT) |
commit | e0c21e2f8feb0fe5b95bd0c38524ded125ecb17d (patch) | |
tree | 46eec01db58764f6631b168c1ac5269d41a1dba5 /src | |
parent | 3ce739cb63344b808f75a200e5e3cbf076504632 (diff) | |
download | hdf5-e0c21e2f8feb0fe5b95bd0c38524ded125ecb17d.zip hdf5-e0c21e2f8feb0fe5b95bd0c38524ded125ecb17d.tar.gz hdf5-e0c21e2f8feb0fe5b95bd0c38524ded125ecb17d.tar.bz2 |
Fix a memory corruption issue in H5S__point_project_simple (#2626) (#2630)
Diffstat (limited to 'src')
-rw-r--r-- | src/H5Spoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Spoint.c b/src/H5Spoint.c index 3e85aff..22feaf8 100644 --- a/src/H5Spoint.c +++ b/src/H5Spoint.c @@ -2316,7 +2316,7 @@ H5S__point_project_simple(const H5S_t *base_space, H5S_t *new_space, hsize_t *of /* Copy over the point's coordinates */ HDmemset(new_node->pnt, 0, sizeof(hsize_t) * rank_diff); H5MM_memcpy(&new_node->pnt[rank_diff], base_node->pnt, - (new_space->extent.rank * sizeof(hsize_t))); + (base_space->extent.rank * sizeof(hsize_t))); /* Keep the order the same when copying */ if (NULL == prev_node) |