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(json_parse): Tape failure due to out of bounds ':' #11831

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kgpai
Copy link
Contributor

@kgpai kgpai commented Dec 11, 2024

Summary: SIMDJSON fails with a tape failure when if a ':' immediately follows the end of a " when parsing even though ':' is outside the range of the input. This can happen if the previous string had a ':' at just the right location as we dont clear the buffer when processing strings. Fixes T210222818 .

Differential Revision: D67108827

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 11, 2024
Copy link

netlify bot commented Dec 11, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit b8c0cfa
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/675a2a619e73b600089e2091

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67108827

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67108827

kgpai pushed a commit to kgpai/velox-1 that referenced this pull request Dec 11, 2024
Summary:

SIMDJSON fails with a tape failure when if a ':' immediately follows the end of a \" when parsing even though ':' is outside the range of the input. This can happen if the previous string had a ':' at just the right location as we dont clear the buffer when processing strings. Fixes T210222818 .

Differential Revision: D67108827
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67108827

@kgpai kgpai changed the title fix: json_parse tape failure when ':' follows a " fix: json_parse tape failure Dec 11, 2024
@kgpai kgpai changed the title fix: json_parse tape failure fix(json_parse): Tape failure due to out of bounds ':' Dec 11, 2024
Copy link
Contributor

@amitkdutta amitkdutta left a comment

Choose a reason for hiding this comment

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

Thanks @kgpai for fixing it so quickly!

Summary:

SIMDJSON fails with a tape failure when if a ':' immediately follows the end of a \" when parsing even though ':' is outside the range of the input. This can happen if the previous string had a ':' at just the right location as we dont clear the buffer when processing strings. Fixes T210222818 .

Reviewed By: amitkdutta

Differential Revision: D67108827
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67108827

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants