diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2016-03-08 02:49:13 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2016-03-08 02:49:13 (GMT) |
commit | c3ad0376099f3ab9c688eb56f243d48ec90a39c3 (patch) | |
tree | 37ffd00acd74beee9df2447d8095ed5e8366124f /src/H5C.c | |
parent | 6a59ea16edca6a7998aa6833d566786cec34730d (diff) | |
download | hdf5-c3ad0376099f3ab9c688eb56f243d48ec90a39c3.zip hdf5-c3ad0376099f3ab9c688eb56f243d48ec90a39c3.tar.gz hdf5-c3ad0376099f3ab9c688eb56f243d48ec90a39c3.tar.bz2 |
[svn-r29331] Merge of r29150 from trunk
segfault on corrupted file fix
Tested on: 64-bit Ubuntu 15.10 w/ gcc 5.2.1
autotools serial
Diffstat (limited to 'src/H5C.c')
-rw-r--r-- | src/H5C.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -3282,16 +3282,12 @@ H5C_protect(H5F_t * f, hit = FALSE; - thing = H5C_load_entry(f, dxpl_id, + if(NULL == (thing = H5C_load_entry(f, dxpl_id, #ifdef H5_HAVE_PARALLEL - coll_access, + coll_access, #endif /* H5_HAVE_PARALLEL */ - type, addr, udata); - - if ( thing == NULL ) { - + type, addr, udata))) HGOTO_ERROR(H5E_CACHE, H5E_CANTLOAD, NULL, "can't load entry") - } entry_ptr = (H5C_cache_entry_t *)thing; entry_ptr->ring = ring; |