summaryrefslogtreecommitdiffstats
path: root/src/H5Spkg.h
diff options
context:
space:
mode:
authorVailin Choi <vchoi@hdfgroup.org>2020-03-16 19:06:57 (GMT)
committervchoi <vchoi@jelly.ad.hdfgroup.org>2020-03-16 19:33:52 (GMT)
commit3b2db5eb19594fa44357e63e36f3b294fbae463d (patch)
tree10bf21ba25e395c1a985a5ff333a79da9541d65b /src/H5Spkg.h
parentfbda71a49e85648fcf45b491b5eebea74d4e5941 (diff)
downloadhdf5-3b2db5eb19594fa44357e63e36f3b294fbae463d.zip
hdf5-3b2db5eb19594fa44357e63e36f3b294fbae463d.tar.gz
hdf5-3b2db5eb19594fa44357e63e36f3b294fbae463d.tar.bz2
Merge pull request #2451 in HDFFV/hdf5 from ~VCHOI/my_third_fork:bugfix/develop_seg_fault_sel_compat to develop
* commit '81b1ed4e1724b8a6a731ab2b8fb03234a8b49d15': 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.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/H5Spkg.h b/src/H5Spkg.h
index e139bce..da2dd4a 100644
--- a/src/H5Spkg.h
+++ b/src/H5Spkg.h
@@ -47,14 +47,17 @@
#define H5S_HYPER_VERSION_LATEST H5S_HYPER_VERSION_3
/* Versions for H5S_SEL_POINTS selection info */
-#define H5S_POINT_VERSION_1 1
-#define H5S_POINT_VERSION_2 2
+#define H5S_POINT_VERSION_1 1
+#define H5S_POINT_VERSION_2 2
+#define H5S_POINT_VERSION_LATEST H5S_POINT_VERSION_2
/* 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
/* Encoded size of selection info for H5S_SEL_POINTS/H5S_SEL_HYPER */
#define H5S_SELECT_INFO_ENC_SIZE_2 0x02 /* 2 bytes: 16 bits */