mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-25 17:00:45 +08:00
[svn-r24463] Issue 8484 - Segfault during H5Fopen of corrupt file. I put a condition check to make sure a pointer isn't NULL.
Tested on jam - very simple change.
This commit is contained in:
parent
21cecf09fa
commit
200e48e08c
@ -1442,7 +1442,7 @@ H5O_chunk_proxy_dest(H5O_chunk_proxy_t *chk_proxy)
|
||||
HDassert(chk_proxy);
|
||||
|
||||
/* Decrement reference count of object header */
|
||||
if(H5O_dec_rc(chk_proxy->oh) < 0)
|
||||
if(chk_proxy->oh && H5O_dec_rc(chk_proxy->oh) < 0)
|
||||
HGOTO_ERROR(H5E_OHDR, H5E_CANTDEC, FAIL, "can't decrement reference count on object header")
|
||||
|
||||
/* Release the chunk proxy object */
|
||||
|
Loading…
x
Reference in New Issue
Block a user