8000 gh-123378: fix some corner cases of `start` and `end` values in `PyUnicodeErrorObject` by picnixz · Pull Request #123380 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-123378: fix some corner cases of start and end values in PyUnicodeErrorObject #123380

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 34 commits into from
Dec 4, 2024

Conversation

picnixz
Copy link
Member
@picnixz picnixz commented Aug 27, 2024

This fixes a bug when the `start` value of a `UnicodeError` is 0
and the underlying object is an empty string or bytes.
skirpichev
skirpichev previously approved these changes Aug 27, 2024
@picnixz picnixz changed the title gh-123378: Fix out-of-bounds results in PyUnicode{Encode,Decode}Error_GetStart gh-123378: reject negative start values on PyUnicodeError objects Aug 28, 2024
@picnixz picnixz changed the title gh-123378: reject negative start values on PyUnicodeError objects gh-123378: reject negative start values on PyUnicodeErrorObject Aug 28, 2024