summaryrefslogtreecommitdiffstats
path: root/src/H5Spkg.h
diff options
context:
space:
mode:
authorVailin Choi <vchoi@hdfgroup.org>2020-03-16 19:06:57 (GMT)
committerVailin Choi <vchoi@hdfgroup.org>2020-03-16 19:06:57 (GMT)
commit9c93c1bb00d4325867288b3811a6bb4907a51dde (patch)
treea0f39b3725382567ebdfc8bbd72b4c5c70f0bd5c /src/H5Spkg.h
parent7613f7e1aa89210bb625d59d79a6220c49a1f22c (diff)
parent81b1ed4e1724b8a6a731ab2b8fb03234a8b49d15 (diff)
downloadhdf5-9c93c1bb00d4325867288b3811a6bb4907a51dde.zip
hdf5-9c93c1bb00d4325867288b3811a6bb4907a51dde.tar.gz
hdf5-9c93c1bb00d4325867288b3811a6bb4907a51dde.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 */