diff options
author | Vailin Choi <vchoi@jam.ad.hdfgroup.org> | 2018-07-11 03:00:14 (GMT) |
---|---|---|
committer | M. Scot Breitenfeld <brtnfld@hdfgroup.org> | 2018-07-26 22:16:50 (GMT) |
commit | 78d4fbddbd20904f9ee05a1d5de3ddd701453d24 (patch) | |
tree | d0f9cf6e29233f55b1e4f9f40e986de61b5872f4 /src/H5Olayout.c | |
parent | 256f74f5320a5a97fc396b942c7d54331740244d (diff) | |
download | hdf5-78d4fbddbd20904f9ee05a1d5de3ddd701453d24.zip hdf5-78d4fbddbd20904f9ee05a1d5de3ddd701453d24.tar.gz hdf5-78d4fbddbd20904f9ee05a1d5de3ddd701453d24.tar.bz2 |
Fix for HDFFV-10333:
1) Check for valid object header version for a refcount messge
2) Check for invalid fill value size
3) Check for invalid dimension size in a layout message
4) Add --enable-error-stack option to h5stat
5) Add error checks to h5stat.c
6) Add tests to h5stat and h5dump
Diffstat (limited to 'src/H5Olayout.c')
-rw-r--r-- | src/H5Olayout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Olayout.c b/src/H5Olayout.c index afaddfa..c880435 100644 --- a/src/H5Olayout.c +++ b/src/H5Olayout.c @@ -125,8 +125,8 @@ H5O__layout_decode(H5F_t *f, H5O_t H5_ATTR_UNUSED *open_oh, /* Dimensionality */ ndims = *p++; - if(ndims > H5O_LAYOUT_NDIMS) - HGOTO_ERROR(H5E_OHDR, H5E_CANTLOAD, NULL, "dimensionality is too large") + if(!ndims || ndims > H5O_LAYOUT_NDIMS) + HGOTO_ERROR(H5E_OHDR, H5E_CANTLOAD, NULL, "dimensionality is out of range") /* Layout class */ mesg->type = (H5D_layout_t)*p++; |