diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-03-18 20:06:15 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2020-03-18 20:06:15 (GMT) |
commit | f0a687f133c432ae32fca5b5eb93161837fd9434 (patch) | |
tree | 7fc91907f622c02077c0b9f9d66b8a7b2e399f93 /src/H5Sall.c | |
parent | 3d29cbb27fd6e9beeb3213b6ee3f7f6c7c5bc37d (diff) | |
parent | 9c93c1bb00d4325867288b3811a6bb4907a51dde (diff) | |
download | hdf5-f0a687f133c432ae32fca5b5eb93161837fd9434.zip hdf5-f0a687f133c432ae32fca5b5eb93161837fd9434.tar.gz hdf5-f0a687f133c432ae32fca5b5eb93161837fd9434.tar.bz2 |
Merge branch 'develop' into develop_minor
Diffstat (limited to 'src/H5Sall.c')
-rw-r--r-- | src/H5Sall.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5Sall.c b/src/H5Sall.c index 4a4245d..77fb582 100644 --- a/src/H5Sall.c +++ b/src/H5Sall.c @@ -690,6 +690,9 @@ H5S__all_deserialize(H5S_t **space, const uint8_t **p) /* Decode version */ UINT32DECODE(*p, version); + if(version < H5S_ALL_VERSION_1 || version > H5S_ALL_VERSION_LATEST) + HGOTO_ERROR(H5E_DATASPACE, H5E_BADVALUE, FAIL, "bad version number for all selection") + /* Skip over the remainder of the header */ *p += 8; |