-
-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix out of bounds in hdf5/src/H5Fint.c:2859
#2691
Conversation
@mattjala, I've fixed |
Hi @kobrineli, apologies for the extra burden, but would it be possible to merge in the latest changes from the HDF5 "develop" branch and refactor this PR to be in the style of the other buffer checks we've been adding recently? See #2679 for example where the "buffer end" variable is set to |
Okay, I'll do it as soon as possible. |
@kobrineli Thanks! Just to move the process of getting this merged along, you should also add a small entry in release_docs/RELEASE.txt under the "bugs fixed" section describing your fix and any associated CVEs. You should see some examples of recent entries for CVE fixes there that you can use; the entries are organized by date. |
@jhendersonHDF |
@kobrineli If there aren't any CVE issues associated with the fix, then just list any GitHub issue number associated with the fix, if any. The typical format for RELEASE.txt entries is:
|
@jhendersonHDF |
Hi! I've changed buffer overflow checks to the new macro and updated the RELEASE.txt with the issue description. |
Thanks for the updates! This PR looks close; just a couple minor cleanup things to take care of. |
Something fails in the tests that is not related to changes in this PR |
Looks like those are mostly cascading failures from earlier on, but still related to the changes here. For example:
|
@kobrineli Everything looks good now. Thanks for the work on fixing this and getting the PR in shape! |
@jhendersonHDF Thanks! |
Hi! Some time ago I reported an out of bounds error in
hdf5/src/H5Fint.c:2859
#2432.I fixed the error by myself by adding some checks on
image
pointer. I've tested the fixed version on the input that led to error, now it works fine.Closes #2432