diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2022-10-30 06:23:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-30 06:23:20 (GMT) |
commit | 76f989dc3e668d15b3ec9a90bf6530276530acac (patch) | |
tree | 627d40bcf2a29e819b5dfef1fc270c6848e09756 /Include/cpython/unicodeobject.h | |
parent | 3ac8c0ab6ee819a14b1c8e0992acbaf376a46058 (diff) | |
download | cpython-76f989dc3e668d15b3ec9a90bf6530276530acac.zip cpython-76f989dc3e668d15b3ec9a90bf6530276530acac.tar.gz cpython-76f989dc3e668d15b3ec9a90bf6530276530acac.tar.bz2 |
gh-98783: Fix crashes when `str` subclasses are used in `_PyUnicode_Equal` (#98806)
Diffstat (limited to 'Include/cpython/unicodeobject.h')
-rw-r--r-- | Include/cpython/unicodeobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/cpython/unicodeobject.h b/Include/cpython/unicodeobject.h index 3ca6ace..8444507a 100644 --- a/Include/cpython/unicodeobject.h +++ b/Include/cpython/unicodeobject.h @@ -945,7 +945,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. */ PyAPI_FUNC(int) _PyUnicode_Equal(PyObject *, PyObject *); PyAPI_FUNC(int) _PyUnicode_WideCharString_Converter(PyObject *, void *); |