diff options
author | vchoi <vchoi@jelly.ad.hdfgroup.org> | 2020-03-12 22:20:23 (GMT) |
---|---|---|
committer | vchoi <vchoi@jelly.ad.hdfgroup.org> | 2020-03-12 22:23:53 (GMT) |
commit | f33bb733be2da42672b4b0264cd4c6318ba35e9a (patch) | |
tree | 6a5c914680e21de41a1e2506957d1d4db214be92 /src/H5Spkg.h | |
parent | 25a67c538c8014db867cba386c959fb9e7b714e8 (diff) | |
download | hdf5-f33bb733be2da42672b4b0264cd4c6318ba35e9a.zip hdf5-f33bb733be2da42672b4b0264cd4c6318ba35e9a.tar.gz hdf5-f33bb733be2da42672b4b0264cd4c6318ba35e9a.tar.bz2 |
Fix issues when deserializing point/all/none selection with version beyond the library's supported version:
(1) Verify the decoded version before proceeding further with deserialization
(2) Close the dataspace if errors occurred after opening the dataspace
Diffstat (limited to 'src/H5Spkg.h')
-rw-r--r-- | src/H5Spkg.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/H5Spkg.h b/src/H5Spkg.h index 518c495..fc78cb6 100644 --- a/src/H5Spkg.h +++ b/src/H5Spkg.h @@ -42,13 +42,16 @@ #define H5S_HYPER_VERSION_LATEST H5S_HYPER_VERSION_2 /* Versions for H5S_SEL_POINTS selection info */ -#define H5S_POINT_VERSION_1 1 +#define H5S_POINT_VERSION_1 1 +#define H5S_POINT_VERSION_LATEST H5S_POINT_VERSION_1 /* Versions for H5S_SEL_NONE selection info */ -#define H5S_NONE_VERSION_1 1 +#define H5S_NONE_VERSION_1 1 +#define H5S_NONE_VERSION_LATEST H5S_NONE_VERSION_1 /* Versions for H5S_SEL_ALL selection info */ -#define H5S_ALL_VERSION_1 1 +#define H5S_ALL_VERSION_1 1 +#define H5S_ALL_VERSION_LATEST H5S_ALL_VERSION_1 /* Size of point/offset info for H5S_SEL_POINTS/H5S_SEL_HYPER */ #define H5S_SELECT_INFO_ENC_SIZE_4 0x04 /* 4 bytes: 32 bits */ |