Skip to content

[3.11] gh-98783: Fix crashes when str subclasses are used in _PyUnicode_Equal (GH-98806) #98869

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

Closed

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Oct 30, 2022

(cherry picked from commit 76f989d)

Co-authored-by: Nikita Sobolev [email protected]

…code_Equal` (pythonGH-98806)

(cherry picked from commit 76f989d)

Co-authored-by: Nikita Sobolev <[email protected]>
@@ -1144,7 +1144,7 @@ PyAPI_FUNC(PyObject*) _PyUnicode_FromId(_Py_Identifier*);
and where the hash values are equal (i.e. a very probable match) */
PyAPI_FUNC(int) _PyUnicode_EQ(PyObject *, PyObject *);

/* Equality check. Returns -1 on failure. */
/* Equality check. */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, in 3.11, this can return -1 on failure.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can backport manually without this comment change.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sweeneyde sweeneyde closed this Oct 30, 2022
@miss-islington miss-islington deleted the backport-76f989d-3.11 branch October 30, 2022 07:16
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.

4 participants