summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2022-10-30 06:23:20 (GMT)
committerGitHub <noreply@github.com>2022-10-30 06:23:20 (GMT)
commit76f989dc3e668d15b3ec9a90bf6530276530acac (patch)
tree627d40bcf2a29e819b5dfef1fc270c6848e09756 /Include
parent3ac8c0ab6ee819a14b1c8e0992acbaf376a46058 (diff)
downloadcpython-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')
-rw-r--r--Include/cpython/unicodeobject.h2
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 *);