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

[ldm] Reset loadedDictEnd when the context is reset #2150

Merged
merged 3 commits into from
May 19, 2020

Conversation

terrelln
Copy link
Contributor

@terrelln terrelln commented May 18, 2020

  • Invalidate the loadedDictEnd when we reset the context
  • Also invalidate loadedDictEnd when we do overflow correction

Added a test that produces an out of bounds offset before this fix, and works after.

Credit to OSS-Fuzz

@terrelln terrelln force-pushed the ldm-dict-reset branch 2 times, most recently from 37aa1a4 to 7b317b4 Compare May 18, 2020 22:59
@terrelln
Copy link
Contributor Author

Added a test.

@terrelln terrelln merged commit 9778f46 into facebook:dev May 19, 2020
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.

4 participants