]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] 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:47:39 +0000 (18:47 +0100)
committerGitHub <noreply@github.com>
Wed, 18 Mar 2026 17:47:39 +0000 (17:47 +0000)
commit5feedc759363dec4b9e2b0630bd57b8e4eba28f7
treeb5f3e0e0aa7b7c24a745c9b6fe84323657bf295b
parent3ebf54ed93c364756ccdd2ca2261c400386cfc4a
[3.14] gh-146093: Fix csv _set_str(): check if PyUnicode_DecodeASCII() failed (GH-146113) (#146130)

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