gh-89653: Add assertions on PyUnicode_READ() index by vstinner · Pull Request #92883 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Merged

vstinner merged 1 commit intopython:mainfrom

vstinner:add_unicode_assert

May 17, 2022

Merged

gh-89653: Add assertions on PyUnicode_READ() index#92883

vstinner merged 1 commit intopython:mainfrom

vstinner:add_unicode_assert

Conversation

@vstinner

Copy link Copy Markdown

Member

Add assertions on the index argument of PyUnicode_READ(),
PyUnicode_READ_CHAR() and PyUnicode_WRITE() functions.

Add assertions on the index argument of PyUnicode_READ(),
PyUnicode_READ_CHAR() and PyUnicode_WRITE() functions.

@vstinner vstinner merged commit 1305832 into python:main

May 17, 2022

@vstinner vstinner deleted the add_unicode_assert branch

May 17, 2022 17:43

@vstinner

Copy link Copy Markdown

Member Author

cc @erlend-aasland FYI. I don't want to backport these changes, it's too late to make Python 3.11 stricter.

erlend-aasland reacted with thumbs up emoji

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

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@vstinner @bedevere-bot