]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-143196: Fix crash in non-standard use of internal JSON encoder object ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 12 Jan 2026 18:50:40 +0000 (19:50 +0100)
committerGitHub <noreply@github.com>
Mon, 12 Jan 2026 18:50:40 +0000 (18:50 +0000)
commit7a066ad02038583b227c0293b8049ad6be87d5fe
tree04fb9fd256bf3e257d10d7105408580aa0f784f2
parent9c7785e83ab9920070e57d4ddf91667d021ac573
[3.14] gh-143196: Fix crash in non-standard use of internal JSON encoder object (GH-143618) (GH-143748)

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.
(cherry picked from commit c559135c931789ebc752ae68814858c398cb798b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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