Skip to content

gh-111089: PyUnicode_AsUTF8AndSize() sets size on error#111106

Merged
vstinner merged 1 commit intopython:mainfrom
vstinner:asutf8andsize
Oct 20, 2023
Merged

gh-111089: PyUnicode_AsUTF8AndSize() sets size on error#111106
vstinner merged 1 commit intopython:mainfrom
vstinner:asutf8andsize

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Oct 20, 2023

On error, PyUnicode_AsUTF8AndSize() now sets the size argument to 0, to avoid undefined value.


📚 Documentation preview 📚: https://cpython-previews--111106.org.readthedocs.build/

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants