diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2023-03-18 01:25:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-18 01:25:04 (GMT) |
commit | a01f570f97287295e960633feab4c3908ea318d7 (patch) | |
tree | 2e650c7046b014cd1b83942d8e902565fefc5895 /src/H5Ppublic.h | |
parent | aee6290441102864d7c9a74b2b1521a58a8c7649 (diff) | |
download | hdf5-a01f570f97287295e960633feab4c3908ea318d7.zip hdf5-a01f570f97287295e960633feab4c3908ea318d7.tar.gz hdf5-a01f570f97287295e960633feab4c3908ea318d7.tar.bz2 |
Minor merges to 1.10 (#2579)
* Elaborate how cd_values get stored (#2522)
* Enclose MESG in do...while loop (#2576)
Enclose MSG macro in a do...while loop
* Add a clang-format comment about permissions (#2577)
* Check for overflow when calculating on-disk attribute data size (#2459)
* Remove duplicate code
Signed-off-by: Egbert Eich <eich@suse.com>
* Add test case for CVE-2021-37501
Bogus sizes in this test case causes the on-disk data size
calculation in H5O__attr_decode() to overflow so that the
calculated size becomes 0. This causes the read to overflow
and h5dump to segfault.
This test case was crafted, the test file was not directly
generated by HDF5.
Test case from:
https://github.com/ST4RF4LL/Something_Found/blob/main/HDF5_v1.13.0_h5dump_heap_overflow.md
---------
Co-authored-by: Mark (he/his) C. Miller <miller86@llnl.gov>
Co-authored-by: glennsong09 <43005495+glennsong09@users.noreply.github.com>
Co-authored-by: Dana Robinson <43805+derobins@users.noreply.github.com>
Co-authored-by: Egbert Eich <eich@suse.com>
Diffstat (limited to 'src/H5Ppublic.h')
-rw-r--r-- | src/H5Ppublic.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/H5Ppublic.h b/src/H5Ppublic.h index a99894d..49483b5 100644 --- a/src/H5Ppublic.h +++ b/src/H5Ppublic.h @@ -2257,10 +2257,13 @@ H5_DLL herr_t H5Pset_deflate(hid_t plist_id, unsigned level); * (#H5Z_FILTER_DEFLATE) and the Fletcher32 error detection filter * (#H5Z_FILTER_FLETCHER32). * - * The array \p c_values contains \p cd_nelmts integers which are - * auxiliary data for the filter. The integer values will be - * stored in the dataset object header as part of the filter - * information. + * The array \p cd_values contains \p cd_nelmts unsigned integers + * which are auxiliary data for the filter. The values are typically + * used as parameters to control the filter. In a filter's + * \p set_local method (called from \p H5Dcreate), the values are + * interpreted and possibly modified before they are used to control + * the filter. These, possibly modified values, are then stored in + * the dataset object header as auxiliary data for the filter. * * The \p flags argument is a bit vector with the following * fields specifying certain general properties of the filter: |