summaryrefslogtreecommitdiffstats
path: root/test/th5s.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-07-28 03:51:43 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-07-28 03:51:43 (GMT)
commitd60d3679301d5587b077ae47eab091fdbb96a28d (patch)
tree4e9717e96ab1d43d157259dcb6200c5d260cb9ab /test/th5s.c
parentae0ae159563f4d284b4062f0c838f7c91d38f338 (diff)
downloadhdf5-d60d3679301d5587b077ae47eab091fdbb96a28d.zip
hdf5-d60d3679301d5587b077ae47eab091fdbb96a28d.tar.gz
hdf5-d60d3679301d5587b077ae47eab091fdbb96a28d.tar.bz2
[svn-r8964] Purpose:
Revise new feature Description: Add buffer type and version # bytes to the encoded datatype and dataspace buffers (for H5Tencode & H5Sencode) Platforms tested: FreeBSD 4.10 (sleipnir) Too minor to require h5committest
Diffstat (limited to 'test/th5s.c')
-rw-r--r--test/th5s.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/th5s.c b/test/th5s.c
index c3724e2..9379413 100644
--- a/test/th5s.c
+++ b/test/th5s.c
@@ -563,6 +563,12 @@ test_h5s_encode(void)
if(sbuf_size>0)
sbuf = (unsigned char*)calloc(1, sbuf_size);
+ /* Try decoding bogus buffer */
+ H5E_BEGIN_TRY {
+ ret = H5Sdecode(sbuf);
+ } H5E_END_TRY;
+ VERIFY(ret, FAIL, "H5Sdecode");
+
ret = H5Sencode(sid1, sbuf, &sbuf_size);
CHECK(ret, FAIL, "H5Sencode");