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

Fixed two issues found with fuzzing. #52

Conversation

mschwarzl
Copy link

The first fix tackles a heap overread caused by the prev_length being set to 0 under certain circumstances in deflate.c.

The second issue is a 1-byte heap overflow caused by an incorrect computation of the max_block_size used in emitting stored blocks. Under certain circumstances, bi_window puts a short with (2 byte) causing the header to be 6 bytes instead of the assumed 5 and max_block_size to be 506 instead of 507.

The first fix tackles a heap overread caused by the prev_length being set to 0 under certain circumstances in deflate.c.

The second issue is a 1-byte heap overflow caused by an incorrect computation of the max_block_size used in emitting stored blocks. Under certain circumstances, bi_window puts a short with (2 byte) causing the header to be 6 bytes instead of the assumed 5 and max_block_size to be 506 instead of 507.
@kornelski kornelski merged commit 8352d10 into cloudflare:gcc.amd64 Nov 16, 2023
6 checks passed
@mschwarzl mschwarzl deleted the mschwarzl/patches-for-fuzzer-findings branch November 16, 2023 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants