SIGN IN SIGN UP

[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>
M
Miss Islington (bot) committed
c7d7e1c1a023c0b98ffb8e383fa03934bc834d65
Parent: 450e9ea
Committed by GitHub <noreply@github.com> on 3/18/2026, 5:45:47 PM