Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34.3k
gh-146093: Fix csv _set_str(): check if PyUnicode_DecodeASCII() failed#146113
gh-146093: Fix csv _set_str(): check if PyUnicode_DecodeASCII() failed#146113vstinner merged 1 commit intopython:mainfrom
Conversation
… failedThe function can fail on a memory allocation failure.Bug reported by devdanzin.
vstinner commentedMar 18, 2026
Writing a test requires using |
serhiy-storchaka commentedMar 18, 2026
It can also fail for non-ASCII data, isn't? |
serhiy-storchaka left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Ah, the default is hardcoded ASCII string. LGTM. 👍
724c7c8 intopython:mainUh oh!
There was an error while loading.Please reload this page.
Thanks@vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
… failed (pythonGH-146113)The function can fail on a memory allocation failure.Bug reported by devdanzin.(cherry picked from commit724c7c8)Co-authored-by: Victor Stinner <vstinner@python.org>
GH-146130 is a backport of this pull request to the3.14 branch. |
Thanks@vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
… failed (pythonGH-146113)The function can fail on a memory allocation failure.Bug reported by devdanzin.(cherry picked from commit724c7c8)Co-authored-by: Victor Stinner <vstinner@python.org>
GH-146131 is a backport of this pull request to the3.13 branch. |
vstinner commentedMar 18, 2026
Merged. Thanks for your review@serhiy-storchaka. |
Uh oh!
There was an error while loading.Please reload this page.
The function can fail on a memory allocation failure.
Bug reported by devdanzin.
_set_strmissingNULLcheck afterPyUnicode_DecodeASCIIin_csv.c#146093