8000 [3.9] gh-95778: CVE-2020-10735: Prevent DoS by very large int() by gpshead · Pull Request #96502 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.9] gh-95778: CVE-2020-10735: Prevent DoS by very large int() #96502

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Sep 5, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix versionadded/versionchanged.
  • Loading branch information
gpshead committed Aug 21, 2022
commit e5cd3fca43600919fe5bec67b9a275c8b4400287
2 changes: 1 addition & 1 deletion Doc/library/json.rst
8000
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ Basic Usage
be used to use another datatype or parser for JSON integers
(e.g. :class:`float`).

.. versionchanged:: 3.10.7
.. versionchanged:: 3.9.14
The default *parse_int* of :func:`int` now limits the maximum length of
the integer string via the interpreter's :ref:`integer string
conversion length limitation <int_max_str_digits>` to help avoid denial
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5310,7 +5310,7 @@ Verification::
... '571186405732').to_bytes(53, 'big')
...

.. versionadded:: 3.10.7
.. versionadded:: 3.9.14

Affected APIs
-------------
Expand Down Expand Up @@ -5365,7 +5365,7 @@ Information about the default and minimum can be found in :attr:`sys.int_info`:
* :data:`sys.int_info.str_digits_check_threshold <sys.int_info>` is the lowest
accepted value for the limit (other than 0 which disables it).

.. versionadded:: 3.10.7
.. versionadded:: 3.9.14

.. caution::

Expand Down
6 changes: 3 additions & 3 deletions Doc/library/sys.rst
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ always available.
Mode <devmode>` and the ``utf8_mode`` attribute for the new :option:`-X`
``utf8`` flag.

.. versionchanged:: 3.10.7
.. versionchanged:: 3.9.14
Added the ``int_max_str_digits`` attribute.


Expand Down Expand Up @@ -966,7 +966,7 @@ always available.

.. versionadded:: 3.1

.. versionchanged:: 3.10.7
.. versionchanged:: 3.9.14
Added ``default_max_str_digits`` and ``str_digits_check_threshold``.


Expand Down Expand Up @@ -1252,7 +1252,7 @@ always available.
<int_max_str_digits>` used by this interpreter. See also
:func:`get_int_max_str_digits`.

.. versionadded:: 3.10.7
.. versionadded:: 3.9.14

.. function:: setprofile(profilefunc)

Expand Down
2 changes: 1 addition & 1 deletion Doc/using/cmdline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ conflict.
interpreter's global :ref:`integer string conversion length limitation
<int_max_str_digits>`.

.. versionadded:: 3.10.7
.. versionadded:: 3.9.14

.. envvar:: PYTHONIOENCODING

Expand Down
0