summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2022-12-24 02:08:27 (GMT)
committerGitHub <noreply@github.com>2022-12-24 02:08:27 (GMT)
commit88fe8d701af3316c8869ea18ea1c7acec6f68c04 (patch)
tree3b0614dd8bf71fccd19bb87c1aa9568be344bf0d /Python
parent9c4b8cca09342734eb04fc1093d5952a2317dfb7 (diff)
downloadcpython-88fe8d701af3316c8869ea18ea1c7acec6f68c04.zip
cpython-88fe8d701af3316c8869ea18ea1c7acec6f68c04.tar.gz
cpython-88fe8d701af3316c8869ea18ea1c7acec6f68c04.tar.bz2
[3.10] Correct CVE-2020-10735 documentation (GH-100306). (#100477)
(cherry picked from commit 1cf3d78c92eb07dc09d15cc2e773b0b1b9436825) Co-authored-by: Jeremy Paige <ucodery@gmail.com>
Diffstat (limited to 'Python')
-rw-r--r--Python/clinic/sysmodule.c.h4
-rw-r--r--Python/sysmodule.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/Python/clinic/sysmodule.c.h b/Python/clinic/sysmodule.c.h
index 2a6ad89..63c8877 100644
--- a/Python/clinic/sysmodule.c.h
+++ b/Python/clinic/sysmodule.c.h
@@ -651,7 +651,7 @@ PyDoc_STRVAR(sys_get_int_max_str_digits__doc__,
"get_int_max_str_digits($module, /)\n"
"--\n"
"\n"
-"Set the maximum string digits limit for non-binary int<->str conversions.");
+"Return the maximum string digits limit for non-binary int<->str conversions.");
#define SYS_GET_INT_MAX_STR_DIGITS_METHODDEF \
{"get_int_max_str_digits", (PyCFunction)sys_get_int_max_str_digits, METH_NOARGS, sys_get_int_max_str_digits__doc__},
@@ -1036,4 +1036,4 @@ sys__deactivate_opcache(PyObject *module, PyObject *Py_UNUSED(ignored))
#ifndef SYS_GETANDROIDAPILEVEL_METHODDEF
#define SYS_GETANDROIDAPILEVEL_METHODDEF
#endif /* !defined(SYS_GETANDROIDAPILEVEL_METHODDEF) */
-/*[clinic end generated code: output=6230a1e3a4415744 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=1d40b6af6e80cc71 input=a9049054013a1b77]*/
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 2b5c9d3..e740cf9 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -1659,12 +1659,12 @@ sys_mdebug_impl(PyObject *module, int flag)
/*[clinic input]
sys.get_int_max_str_digits
-Set the maximum string digits limit for non-binary int<->str conversions.
+Return the maximum string digits limit for non-binary int<->str conversions.
[clinic start generated code]*/
static PyObject *
sys_get_int_max_str_digits_impl(PyObject *module)
-/*[clinic end generated code: output=0042f5e8ae0e8631 input=8dab13e2023e60d5]*/
+/*[clinic end generated code: output=0042f5e8ae0e8631 input=61bf9f99bc8b112d]*/
{
PyInterpreterState *interp = _PyInterpreterState_GET();
return PyLong_FromSsize_t(interp->int_max_str_digits);