diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-06-12 19:14:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-12 19:14:25 (GMT) |
commit | a1a9526b1438b5275e15e46b2bd890e94b88231f (patch) | |
tree | bb6c5b1792828299228e4a606c098c4721ed0b3a /config/cmake | |
parent | 37990e63c4751493f9c2af8c46e0c230a49e286f (diff) | |
download | hdf5-a1a9526b1438b5275e15e46b2bd890e94b88231f.zip hdf5-a1a9526b1438b5275e15e46b2bd890e94b88231f.tar.gz hdf5-a1a9526b1438b5275e15e46b2bd890e94b88231f.tar.bz2 |
Address memory issues when copying empty enums (#3088)
When copying an empty enum type (including implicitly, as when an enum
is contained in a compound type), the library would allocate 0-size
blocks of memory and attempt to memcpy 0 bytes from NULL pointers, which
are undefined behavior. In debug mode, the library would raise an
assert in H5MM.
The library now avoid undefined memory operations when copying empty
enum types and a test that copies empty enums has been added.
Diffstat (limited to 'config/cmake')
0 files changed, 0 insertions, 0 deletions