summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>2024-12-04 13:13:52 (GMT)
committerGitHub <noreply@github.com>2024-12-04 13:13:52 (GMT)
commitbc0f2e945993747c8b1a6dd66cbe902fddd5758b (patch)
tree289cb0e345924f7ae72a0f6caa5b148d1380b021 /Doc/library
parentad9d059eb10ef132edd73075fa6d8d96d95b8701 (diff)
downloadcpython-bc0f2e945993747c8b1a6dd66cbe902fddd5758b.zip
cpython-bc0f2e945993747c8b1a6dd66cbe902fddd5758b.tar.gz
cpython-bc0f2e945993747c8b1a6dd66cbe902fddd5758b.tar.bz2
gh-123378: Ensure results of `PyUnicode*Error_Get{Start,End}` are clamped (GH-123380)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/exceptions.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst
index b5ba86f..f72b11e 100644
--- a/Doc/library/exceptions.rst
+++ b/Doc/library/exceptions.rst
@@ -644,10 +644,16 @@ The following exceptions are the exceptions that are usually raised.
The first index of invalid data in :attr:`object`.
+ This value should not be negative as it is interpreted as an
+ absolute offset but this constraint is not enforced at runtime.
+
.. attribute:: end
The index after the last invalid data in :attr:`object`.
+ This value should not be negative as it is interpreted as an
+ absolute offset but this constraint is not enforced at runtime.
+
.. exception:: UnicodeEncodeError