diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-04-03 18:06:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-03 18:06:36 (GMT) |
commit | 1c1af33a126e66640c2c2f100f743bd8b8fc07da (patch) | |
tree | 9bf0b0e6cf2e204bf369de2af12ffbd8f75f8e34 /test/tvltypes.c | |
parent | 7b426bf3ea01e485f340a7119210136233aa8d29 (diff) | |
download | hdf5-1c1af33a126e66640c2c2f100f743bd8b8fc07da.zip hdf5-1c1af33a126e66640c2c2f100f743bd8b8fc07da.tar.gz hdf5-1c1af33a126e66640c2c2f100f743bd8b8fc07da.tar.bz2 |
Fix memory leaks and aborts in H5O EFL decode (#2656)
* Convert asserts to error handling in efl decode
The function that decodes external data files object header messages
would call assert() when parsing malformed files, causing applications
to crash when linked against the debug library.
This change converts these assert() calls to HDF5 error checks, so
the messages are sanity checked in both release and debug mode and
debug mode no longer crashes applications.
Also cleaned up some error handling usage and debug checks.
* Free memory on H5O efl decode errors
* Add buffer size checks to efl msg decode
* Add parentheses to math expressions
Fixes GitHub #2605
Diffstat (limited to 'test/tvltypes.c')
0 files changed, 0 insertions, 0 deletions