diff options
author | Vailin Choi <vchoi@jam.ad.hdfgroup.org> | 2017-09-07 20:59:49 (GMT) |
---|---|---|
committer | Vailin Choi <vchoi@jam.ad.hdfgroup.org> | 2017-09-07 20:59:49 (GMT) |
commit | b15011a59af9e70eb06865234f8f0dacab34aa0f (patch) | |
tree | 4f557e5fc7311cb5db782abc94a19f08e53d0b29 /src/H5Spkg.h | |
parent | d7c76e3aacd6f5966725516b0049f62e2efea586 (diff) | |
download | hdf5-b15011a59af9e70eb06865234f8f0dacab34aa0f.zip hdf5-b15011a59af9e70eb06865234f8f0dacab34aa0f.tar.gz hdf5-b15011a59af9e70eb06865234f8f0dacab34aa0f.tar.bz2 |
Fix for HDFFV-9947
Fix to return error when encoding dataspace selection exceeds 32 bit integer limit.
Diffstat (limited to 'src/H5Spkg.h')
-rw-r--r-- | src/H5Spkg.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5Spkg.h b/src/H5Spkg.h index 2fa872b..0597994 100644 --- a/src/H5Spkg.h +++ b/src/H5Spkg.h @@ -46,6 +46,9 @@ * and 'size' callbacks for places to change when updating this. */ #define H5O_SDSPACE_VERSION_LATEST H5O_SDSPACE_VERSION_2 +/* Maximum values for uint16_t and uint32_t */ +#define H5S_UINT16_MAX 65535 /* 2^16 - 1 */ +#define H5S_UINT32_MAX 4294967295 /* 2^32 - 1 */ /* * Dataspace extent information |