Skip to content

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

Merged
terrelln merged 3 commits intofacebook:devfrom
terrelln:ldm-dict-reset
May 19, 2020
Merged

[ldm] Reset loadedDictEnd when the context is reset#2150
terrelln merged 3 commits intofacebook:devfrom
terrelln:ldm-dict-reset

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