summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-08-11 19:41:35 (GMT)
committerGitHub <noreply@github.com>2022-08-11 19:41:35 (GMT)
commit2a6b67f1c516d0e693abd0dc13c7c7799815fd18 (patch)
tree006784b57fede751bfdb0972114fca676da0b73d /Misc
parent9c04e25308ef2bfa44f2cca0b56bfe46be1f6b1b (diff)
downloadcpython-2a6b67f1c516d0e693abd0dc13c7c7799815fd18.zip
cpython-2a6b67f1c516d0e693abd0dc13c7c7799815fd18.tar.gz
cpython-2a6b67f1c516d0e693abd0dc13c7c7799815fd18.tar.bz2
[3.10] gh-95876: Fix format string in pegen error location code (GH-95877 (GH-95901)
(cherry picked from commit b4c857d0fd74abb1ede6fe083c4fa3ca728b2b83) Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2022-08-11-09-19-55.gh-issue-95876.YpQfoV.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-08-11-09-19-55.gh-issue-95876.YpQfoV.rst b/Misc/NEWS.d/next/Core and Builtins/2022-08-11-09-19-55.gh-issue-95876.YpQfoV.rst
new file mode 100644
index 0000000..96b6901
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2022-08-11-09-19-55.gh-issue-95876.YpQfoV.rst
@@ -0,0 +1,4 @@
+Fix format string in ``_PyPegen_raise_error_known_location`` that can lead
+to memory corruption on some 64bit systems. The function was building a
+tuple with ``i`` (int) instead of ``n`` (Py_ssize_t) for Py_ssize_t
+arguments.