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 buffer overread in format_escaped_str #455

Closed
wants to merge 1 commit into from

Conversation

andersk
Copy link
Contributor

@andersk andersk commented Feb 5, 2024

Fixes ijl#452, probably.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
@github-actions github-actions bot added the Stale label Feb 13, 2024
@ijl ijl removed the Stale label Feb 13, 2024
@ijl
Copy link
Owner

ijl commented Feb 14, 2024

Thank you, in 3.9.14.

@ijl ijl closed this Feb 14, 2024
andersk added a commit to andersk/orjson that referenced this pull request Feb 14, 2024
Commit 528220f restored the buffer
overread that I removed in commit
29884e6 (ijl#455).  A buffer overread
that doesn’t cross a page boundary is still undefined behavior, even
if it doesn’t happen to cause an immediate segfault, and all undefined
behavior must be avoided.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
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.

random crashes after upgrade to 3.9.12
2 participants