summaryrefslogtreecommitdiffstats
path: root/Include/pyctype.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/pyctype.h')
0 files changed, 0 insertions, 0 deletions
06eda20ba131ecba6752be0506d310181'>5bc6a7c06eda20ba131ecba6752be0506d310181 (patch) tree2421865d747ee7d068363cadb6de33a984c05ade parent2eba6ad7bf3a5beeed54209a0107be8e1ac77767 (diff)downloadcpython-5bc6a7c06eda20ba131ecba6752be0506d310181.zip
cpython-5bc6a7c06eda20ba131ecba6752be0506d310181.tar.gz
cpython-5bc6a7c06eda20ba131ecba6752be0506d310181.tar.bz2
bpo-38540: Fix possible leak in PyArg_Parse for "es#" and "et#". (GH-16869)
Diffstat
-rw-r--r--Misc/NEWS.d/next/C API/2019-10-21-09-24-03.bpo-38540.314N_T.rst3
-rw-r--r--Python/getargs.c28
2 files changed, 29 insertions, 2 deletions
diff --git a/Misc/NEWS.d/next/C API/2019-10-21-09-24-03.bpo-38540.314N_T.rst b/Misc/NEWS.d/next/C API/2019-10-21-09-24-03.bpo-38540.314N_T.rst
new file mode 100644
index 0000000..1d73ad8
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2019-10-21-09-24-03.bpo-38540.314N_T.rst
@@ -0,0 +1,3 @@
+Fixed possible leak in :c:func:`PyArg_Parse` and similar functions for
+format units ``"es#"`` and ``"et#"`` when the macro
+:c:macro:`PY_SSIZE_T_CLEAN` is not defined.
diff --git a/Python/getargs.c b/Python/getargs.c