gh-125660: Python implementation of json.loads() accepts invalid unicode escapes#125683
gh-125660: Python implementation of json.loads() accepts invalid unicode escapes#125683serhiy-storchaka merged 7 commits intopython:mainfrom
json.loads() accepts invalid unicode escapes#125683Conversation
…8-58-10.gh-issue-125660.sDdDqO.rst
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. |
|
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 <nineteendo19d0@gmail.com>
…tion of JSON decoder (pythonGH-125683) (cherry picked from commit df75136) Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
|
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. |
…tion of JSON decoder (pythonGH-125683)
This condition in
json.decoderis insufficient:cpython/Lib/json/decoder.py
Line 61 in f203d1c
json.loads()accepts invalid unicode escapes #125660