Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
derobins authored Aug 31, 2023
1 parent c5a9cd8 commit 5e71d54
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
12 changes: 12 additions & 0 deletions release_docs/RELEASE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,18 @@ Bug Fixes since HDF5-1.10.10 release
===================================
Library
-------
- Fixed an assertion in a previous fix for CVE-2016-4332

An assert could fail when processing corrupt files that have invalid
shared message flags (as in CVE-2016-4332).

The assert statement in question has been replaced with pointer checks
that don't raise errors. Since the function is in cleanup code, we do
our best to close and free things, even when presented with partially
initialized structs.

Fixes CVE-2016-4332 and HDFFV-9950 (confirmed via the cve_hdf5 repo)

- Seg fault on file close

h5debug fails at file close with core dump on a file that has an
Expand Down
5 changes: 2 additions & 3 deletions src/H5Omessage.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,12 +675,11 @@ H5O__msg_free_real(const H5O_msg_class_t *type, void *msg_native)
{
FUNC_ENTER_PACKAGE_NOERR

/* check args */
HDassert(type);
/* Don't assert on args since this could be called in cleanup code */

if (msg_native) {
H5O__msg_reset_real(type, msg_native);
if (NULL != (type->free))
if (type && type->free)
(type->free)(msg_native);
else
H5MM_xfree(msg_native);
Expand Down

0 comments on commit 5e71d54

Please sign in to comment.