diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2023-03-24 14:53:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-24 14:53:46 (GMT) |
commit | 3fa338013907494ccfe93b8e22d89185a39067ff (patch) | |
tree | 7d294244a6eddcbb8018c8ebe9986817f525eb65 /src/H5Spoint.c | |
parent | 7b4387df4322c3a953f5747c3ffbf907875ca815 (diff) | |
download | hdf5-3fa338013907494ccfe93b8e22d89185a39067ff.zip hdf5-3fa338013907494ccfe93b8e22d89185a39067ff.tar.gz hdf5-3fa338013907494ccfe93b8e22d89185a39067ff.tar.bz2 |
Fix a memory corruption issue in H5S__point_project_simple (#2627)
Diffstat (limited to 'src/H5Spoint.c')
-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 b7f2a5e..94a2aa1 100644 --- a/src/H5Spoint.c +++ b/src/H5Spoint.c @@ -2162,7 +2162,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) |