]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-143196: Fix crash in non-standard use of internal JSON encoder object (GH-143618)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 12 Jan 2026 18:23:05 +0000 (20:23 +0200)
committerGitHub <noreply@github.com>
Mon, 12 Jan 2026 18:23:05 +0000 (18:23 +0000)
commitc559135c931789ebc752ae68814858c398cb798b
treec334b4e3ba0cde0028f9e8d0b4570428d2c3395e
parent3d44f0ab65221d8704d9298712a5114cba3aeea9
gh-143196: Fix crash in non-standard use of internal JSON encoder object (GH-143618)

The internal encoder object returned by undocumented function
json.encoder.c_make_encoder() (aka _json.make_encoder()) crashed
when it was called with non-zero second argument.
Lib/test/test_json/test_speedups.py
Misc/NEWS.d/next/Library/2026-01-09-17-50-26.gh-issue-143196.WxKxzU.rst [new file with mode: 0644]
Modules/_json.c