From 36d59974a6e5192935793c6a6db9159aa3776133 Mon Sep 17 00:00:00 2001 From: Christian Chilan Date: Wed, 17 Jan 2007 15:47:44 -0500 Subject: [svn-r13146] Verifies that current dataspace dimensions are not equal to H5S_UNLIMITED. Checks performed in H5Screate_simple() and H5Sset_extent_simple(). --- src/H5S.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/H5S.c b/src/H5S.c index 0e90661..dc81f9b 100644 --- a/src/H5S.c +++ b/src/H5S.c @@ -1260,6 +1260,9 @@ H5Sis_simple(hid_t space_id) MODIFICATION A null dataspace cannot be created from simple space with this function. + Christian Chilan 01/17/2007 + Verifies that each element of DIMS is not equal to H5S_UNLIMITED. + --------------------------------------------------------------------------*/ herr_t H5Sset_extent_simple(hid_t space_id, int rank, const hsize_t dims[/*rank*/], @@ -1281,6 +1284,8 @@ H5Sset_extent_simple(hid_t space_id, int rank, const hsize_t dims[/*rank*/], HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "invalid rank"); if (dims) { for (u=0; u