diff options
author | mattjala <124107509+mattjala@users.noreply.github.com> | 2023-05-21 03:52:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-21 03:52:00 (GMT) |
commit | 2eec25110a846baa5707d779c034f14af00e2af4 (patch) | |
tree | 88158de426835483f08071cd7dbc4d632a1f5128 /src/H5Spkg.h | |
parent | 4bb3cad3823c107dbc24479d9879fcd4adeab9f3 (diff) | |
download | hdf5-2eec25110a846baa5707d779c034f14af00e2af4.zip hdf5-2eec25110a846baa5707d779c034f14af00e2af4.tar.gz hdf5-2eec25110a846baa5707d779c034f14af00e2af4.tar.bz2 |
Prevent buffer overrun in H5S_select_deserialize (#2963)
Diffstat (limited to 'src/H5Spkg.h')
-rw-r--r-- | src/H5Spkg.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5Spkg.h b/src/H5Spkg.h index 1a5f101..ecd4051 100644 --- a/src/H5Spkg.h +++ b/src/H5Spkg.h @@ -241,7 +241,8 @@ typedef hssize_t (*H5S_sel_serial_size_func_t)(H5S_t *space); /* Method to store current selection in "serialized" form (a byte sequence suitable for storing on disk) */ typedef herr_t (*H5S_sel_serialize_func_t)(H5S_t *space, uint8_t **p); /* Method to create selection from "serialized" form (a byte sequence suitable for storing on disk) */ -typedef herr_t (*H5S_sel_deserialize_func_t)(H5S_t **space, const uint8_t **p); +typedef herr_t (*H5S_sel_deserialize_func_t)(H5S_t **space, const uint8_t **p, const size_t p_size, + hbool_t skip); /* Method to determine smallest n-D bounding box containing the current selection */ typedef herr_t (*H5S_sel_bounds_func_t)(const H5S_t *space, hsize_t *start, hsize_t *end); /* Method to determine linear offset of initial element in selection within dataspace */ |