summaryrefslogtreecommitdiffstats
path: root/test/th5s.c
diff options
context:
space:
mode:
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");