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

ZSTD_compressSequences_internal assert op <= oend #1667

Merged
merged 1 commit into from
Jul 2, 2019

Conversation

terrelln
Copy link
Contributor

@terrelln terrelln commented Jul 2, 2019

When we wrote one byte beyond the end of the buffer for RLE
blocks back in 1.3.7, we would then have op > oend. That is
a problem when we use oend - op for the size of the destination
buffer, and allows further writes beyond the end of the buffer for
the rest of the function. Lets assert that it doesn't happen.

When we wrote one byte beyond the end of the buffer for RLE
blocks back in 1.3.7, we would then have `op > oend`. That is
a problem when we use `oend - op` for the size of the destination
buffer, and allows further writes beyond the end of the buffer for
the rest of the function. Lets assert that it doesn't happen.
@terrelln terrelln merged commit 6c92ba7 into facebook:dev Jul 2, 2019
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