-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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
gh-125660: Python implementation of json.loads()
accepts invalid unicode escapes
#125683
Conversation
…8-58-10.gh-issue-125660.sDdDqO.rst
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After further consideration, I do consider this to be a clear bug fix, which should be backported to versions in "bugfix" status (i.e. 3.12). |
Are you sure? I'm not certain what policy PyPy, IronPython, Jython, etc. have for changes that we backport, but point of pure-Python modules was almost exclusively for other Python implementations--I don't want to accidentally cause any surprises. |
No, I am not sure, I've been away from Python development for several years. It would be good to get another core dev's perspective. |
Upon further consideration, yes, the chance of breaking something with a backport is large relative to the likely pain caused by the current, buggy, state. Let's avoid backporting. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. 👍
This is clearly a bug. |
Thanks @nineteendo for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
…tion of JSON decoder (pythonGH-125683) (cherry picked from commit df75136) Co-authored-by: Nice Zombies <[email protected]>
…tion of JSON decoder (pythonGH-125683) (cherry picked from commit df75136) Co-authored-by: Nice Zombies <[email protected]>
GH-125694 is a backport of this pull request to the 3.13 branch. |
GH-125695 is a backport of this pull request to the 3.12 branch. |
…ation of JSON decoder (GH-125683) (GH-125694) (cherry picked from commit df75136) Co-authored-by: Nice Zombies <[email protected]>
…ation of JSON decoder (GH-125683) (GH-125695) (cherry picked from commit df75136) Co-authored-by: Nice Zombies <[email protected]>
…tion of JSON decoder (pythonGH-125683)
This condition in
json.decoder
is insufficient:cpython/Lib/json/decoder.py
Line 61 in f203d1c
json.loads()
accepts invalid unicode escapes #125660