diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2023-04-04 16:35:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-04 16:35:49 (GMT) |
commit | ec0d4d64867923577c7680c94bf4d51558664693 (patch) | |
tree | 2e10d60f1d266517a93c9a6552b914156ca3fee2 /src | |
parent | 097f65e7a632a274269b13e19ee1cfbe60d6a191 (diff) | |
download | hdf5-ec0d4d64867923577c7680c94bf4d51558664693.zip hdf5-ec0d4d64867923577c7680c94bf4d51558664693.tar.gz hdf5-ec0d4d64867923577c7680c94bf4d51558664693.tar.bz2 |
Fix a memory corruption issue in H5S__point_project_simple (#2626) (#2631)
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 8844181..cf14a58 100644 --- a/src/H5Spoint.c +++ b/src/H5Spoint.c @@ -2318,7 +2318,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) |