diff options
author | Vailin Choi <vchoi@jam.ad.hdfgroup.org> | 2019-12-05 22:09:49 (GMT) |
---|---|---|
committer | Vailin Choi <vchoi@jam.ad.hdfgroup.org> | 2019-12-05 22:09:49 (GMT) |
commit | f3686baaf0de37c2a4db6c3ec68d3a1be7c600e5 (patch) | |
tree | 47ba661bf50d06cf8e1ae7337abcff485b274e3d /src/H5Shyper.c | |
parent | 9d24eefaf71bae79ab3e483a608ddb8deff17b39 (diff) | |
download | hdf5-f3686baaf0de37c2a4db6c3ec68d3a1be7c600e5.zip hdf5-f3686baaf0de37c2a4db6c3ec68d3a1be7c600e5.tar.gz hdf5-f3686baaf0de37c2a4db6c3ec68d3a1be7c600e5.tar.bz2 |
Verify the decoded version for hyperslab selection.
Diffstat (limited to 'src/H5Shyper.c')
-rw-r--r-- | src/H5Shyper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5Shyper.c b/src/H5Shyper.c index 5147289..e9a7133 100644 --- a/src/H5Shyper.c +++ b/src/H5Shyper.c @@ -4250,6 +4250,9 @@ H5S__hyper_deserialize(H5S_t **space, const uint8_t **p) /* Decode version */ UINT32DECODE(pp, version); + if(version < H5S_HYPER_VERSION_1 || version > H5S_HYPER_VERSION_LATEST) + HGOTO_ERROR(H5E_DATASPACE, H5E_BADVALUE, FAIL, "bad version number for hyperslab selection") + if(version >= (uint32_t)H5S_HYPER_VERSION_2) { /* Decode flags */ flags = *(pp)++; |