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

[legacy] Fix ZSTDv0*_decodeSequence() #1595

Merged
merged 1 commit into from
Apr 19, 2019
Merged

Conversation

terrelln
Copy link
Contributor

  • Version <= 0.5 could read beyond the end of dumps, which points into
    the input buffer.
  • Check the validity of dumps before using it, if it is out of bounds
    return garbage values. There is no return code for this function.
  • Introduce MEM_readLE24() for simplicity, since I don't want to trust
    that there is an extra byte after dumps.

Credit to OSS-Fuzz

* Version <= 0.5 could read beyond the end of `dumps`, which points into
  the input buffer.
* Check the validity of `dumps` before using it, if it is out of bounds
  return garbage values. There is no return code for this function.
* Introduce `MEM_readLE24()` for simplicity, since I don't want to trust
  that there is an extra byte after `dumps`.
@terrelln terrelln merged commit b758250 into facebook:dev Apr 19, 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