summaryrefslogtreecommitdiffstats
path: root/src/H5T.c
diff options
context:
space:
mode:
authorVailin Choi <vchoi@jam.ad.hdfgroup.org>2019-12-05 21:09:23 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:20:19 (GMT)
commit44e8fe048b692950efd70b020a413791e4621f10 (patch)
treefc31afdd0bcb0edae6d75c6ba640010fad11bfdd /src/H5T.c
parent1ece440e78fe8ca67f4cbd84be7e55b9275e0af3 (diff)
downloadhdf5-44e8fe048b692950efd70b020a413791e4621f10.zip
hdf5-44e8fe048b692950efd70b020a413791e4621f10.tar.gz
hdf5-44e8fe048b692950efd70b020a413791e4621f10.tar.bz2
Two fixes:
(1) Set the version for reference datatype messge to H5O_DTYPE_VERSION_4. (2) Verify the decoded version for hyperslab selection.
Diffstat (limited to 'src/H5T.c')
-rw-r--r--src/H5T.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/H5T.c b/src/H5T.c
index 9263158..f378357 100644
--- a/src/H5T.c
+++ b/src/H5T.c
@@ -254,6 +254,7 @@
dt->shared->u.atomic.u.r.rtype = H5R_OBJECT2; \
dt->shared->u.atomic.u.r.opaque = TRUE; \
dt->shared->u.atomic.u.r.version = H5R_ENCODE_VERSION; \
+ dt->shared->version = H5O_DTYPE_VERSION_4; \
}
/* Define the code templates for the "SIZE_TMPL" in the H5T_INIT_TYPE macro */