diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2023-03-24 03:55:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-24 03:55:34 (GMT) |
commit | 31c26e72c524c98c3f2e84f1cf34af150aefa9bb (patch) | |
tree | 939c27f2bcb5067ed61a5cb1a7d177d6374514f2 /src | |
parent | 7fd9a4435f80fad41992f1e71b94c4ff2be887ba (diff) | |
download | hdf5-31c26e72c524c98c3f2e84f1cf34af150aefa9bb.zip hdf5-31c26e72c524c98c3f2e84f1cf34af150aefa9bb.tar.gz hdf5-31c26e72c524c98c3f2e84f1cf34af150aefa9bb.tar.bz2 |
Fix a memory corruption issue in H5S__point_project_simple (#2626)
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 b10b7da..1c3697c 100644 --- a/src/H5Spoint.c +++ b/src/H5Spoint.c @@ -2319,7 +2319,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) |