]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-146093: Fix csv _set_str(): check if PyUnicode_DecodeASCII() failed (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 18 Mar 2026 17:45:47 +0000 (18:45 +0100)
committerGitHub <noreply@github.com>
Wed, 18 Mar 2026 17:45:47 +0000 (17:45 +0000)
commitc7d7e1c1a023c0b98ffb8e383fa03934bc834d65
treed7e739cf1ef3d345cf27a752ad10f84e5a33b65f
parent450e9eaf735dc40faf536b337e6c784e2f9050e3
[3.13] gh-146093: Fix csv _set_str(): check if PyUnicode_DecodeASCII() failed (GH-146113) (#146131)

gh-146093: Fix csv _set_str(): check if PyUnicode_DecodeASCII() failed (GH-146113)

The function can fail on a memory allocation failure.

Bug reported by devdanzin.
(cherry picked from commit 724c7c8146f44a7c737ec4588a1ee4b9db994f6f)

Co-authored-by: Victor Stinner <vstinner@python.org>
Modules/_csv.c