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

Fix OutOfBoundsException in MapJsonReader #3375

Merged
merged 8 commits into from
Sep 29, 2021

Conversation

martinbonnin
Copy link
Contributor

@martinbonnin martinbonnin commented Sep 28, 2021

Closes #3361

  • add a test case
  • simplify the test
  • rework MapJsonReader
  • add a Json.md design doc

currentIndex = 0
currentName = null
indexStack[stackSize - 1] = 0
nameIndexStack[stackSize - 1] = 0
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the actual bug that nameIndexStack was not reset on rewind(). Everything else is refactoring, tests and small-ish optimizations

@martinbonnin martinbonnin merged commit 9f7d1cd into dev-3.x Sep 29, 2021
@martinbonnin martinbonnin deleted the fix-outofbounds-exception branch September 29, 2021 08:18
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.

None yet

1 participant