diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-04-29 17:35:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-29 17:35:13 (GMT) |
commit | 12907de9985e9d216c10347dd6b4d2a7eaeecf43 (patch) | |
tree | 2ac1cf93d76ca0913ccbc15db0dfbbdd68a97096 /test/objcopy_ref.c | |
parent | 46cedc2eb03ad7cd6e8404f5e6b526588436f946 (diff) | |
download | hdf5-12907de9985e9d216c10347dd6b4d2a7eaeecf43.zip hdf5-12907de9985e9d216c10347dd6b4d2a7eaeecf43.tar.gz hdf5-12907de9985e9d216c10347dd6b4d2a7eaeecf43.tar.bz2 |
Don't use strnlen when len is not known (#2855)
The datatype object header message decode function was updated to do
bounds checking on the decode buffer. This buffer may arrive with
no buffer size via H5Tdecode(), in which case the buffer size will
have been set to SIZE_MAX by the library.
This fix changes the string length calls to strlen when we don't
know the buffer size (and avoids a potential compiler bug
with icc 17).
Diffstat (limited to 'test/objcopy_ref.c')
0 files changed, 0 insertions, 0 deletions