Skip to content
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

Validate reconstructed chunk sizes #848

Conversation

peterhillman
Copy link
Contributor

When reconstructing the chunk offset tables, the size values could be negative or so large that arithmetic operations overflow 64 bit ints, causing a warning from sanitizers. It seems to be possible to use the overflow to cause an infinite loop during chunk reconstruction.

(No error report exists: spotted from a spurious message when running a fuzz tester.)

Signed-off-by: Peter Hillman [email protected]

@peterhillman peterhillman merged commit 84863e1 into AcademySoftwareFoundation:master Oct 12, 2020
@peterhillman peterhillman deleted the validate_reconstructed_chunk_sizes branch October 12, 2020 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants