diff options
author | Vailin Choi <vchoi@jam.ad.hdfgroup.org> | 2018-01-22 23:40:44 (GMT) |
---|---|---|
committer | Vailin Choi <vchoi@jam.ad.hdfgroup.org> | 2018-01-22 23:40:44 (GMT) |
commit | 8427eefafe7af83dbc133975c3ac2368cf1b08d6 (patch) | |
tree | 8454c8fefd1cc72fcb7759a5bf59a82e5c62e84c /src/H5Cimage.c | |
parent | f122d6f27f85245f2f559c85064eabf91a631b27 (diff) | |
download | hdf5-8427eefafe7af83dbc133975c3ac2368cf1b08d6.zip hdf5-8427eefafe7af83dbc133975c3ac2368cf1b08d6.tar.gz hdf5-8427eefafe7af83dbc133975c3ac2368cf1b08d6.tar.bz2 |
Fix bounds check for the generation of cache image.
Diffstat (limited to 'src/H5Cimage.c')
-rw-r--r-- | src/H5Cimage.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/H5Cimage.c b/src/H5Cimage.c index 53d1712..be2560f 100644 --- a/src/H5Cimage.c +++ b/src/H5Cimage.c @@ -1382,9 +1382,12 @@ H5C__prep_image_for_file_close(H5F_t *f, hid_t dxpl_id, hbool_t *image_generated * Note that under some error conditions, the superblock will be * undefined in this case as well -- if so, assume that the * superblock does not support superblock extension messages. + * Also verify that the file's high_bound is at least release + * 1.10.x, otherwise cancel the request for a cache image */ if((NULL == f->shared->sblock) || - (f->shared->sblock->super_vers < HDF5_SUPERBLOCK_VERSION_2)) { + (f->shared->sblock->super_vers < HDF5_SUPERBLOCK_VERSION_2) || + (f->shared->high_bound < H5F_LIBVER_V110)) { H5C_cache_image_ctl_t default_image_ctl = H5C__DEFAULT_CACHE_IMAGE_CTL; cache_ptr->image_ctl = default_image_ctl; |