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

Range check timestamps on all parsing paths. #1686

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

thomasvl
Copy link
Collaborator

Include the fuzz test that caught this. The bug here is this was being accepted as valid input, when it couldn't be serialized back out into JSON, so this move the parsing test to make sure if fails no matter how it is formatted at parsing time.

Include the fuzz test that caught this. The bug here is this was being accepted
as valid input, when it couldn't be serialized back out into JSON, so this move
the parsing test to make sure if fails no matter how it is formatted at parsing
time.
@thomasvl thomasvl requested a review from tbkka July 29, 2024 20:59
Copy link
Contributor

@tbkka tbkka left a comment

Choose a reason for hiding this comment

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

Nice catch!

@thomasvl thomasvl merged commit b842955 into apple:main Jul 29, 2024
10 checks passed
@thomasvl thomasvl deleted the fuzz_json_issue branch July 29, 2024 21:16
@thomasvl
Copy link
Collaborator Author

yea, I'm really glad I made the most of the fuzz testers serialize back out forcing no errors, cause that's what caught this.

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.

2 participants