-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-95778: CVE-2020-10735: Prevent DoS by very large int() #96499
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
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
19b28fc
CVE-2020-10735: Prevent DoS by very large int()
tiran 0a96b20
Default to disable, improve tests and docs
tiran 88f6d5d
fix typo
tiran 70c195e
More docs (WIP)
tiran e17e93b
Basic documentation for sys functions
tiran fbd14b7
Use ValueError, ignore underscore, scale limit
tiran dd74d70
Fix CI
tiran 0e01461
Address Greg's review
tiran 0b21e5f
Fix sys.flags len and docs
tiran 3b38abe
Keep the warning, but remove advice about limiting input length in th…
gpshead 37193ed
Renamed the APIs & too many other refactorings.
gpshead c90b79f
Improve the configuring docs.
gpshead fea25ea
Stop tying to base10, just use string digits.
gpshead ac9f22f
Remove the added now-unneeded helper log tbl fn.
gpshead da72dd1
prevent intdostimeit from emitting errors in test_tools.
gpshead d7e4d7b
Remove a leftover base 10 reference. clarify.
gpshead 5c7e6d5
versionadded/changed to 3.12
gpshead 61a5bc9
Link to the CVE from the main doc.
gpshead c15adde
Add a What's New entry.
gpshead 76ae1c2
Add a Misc/NEWS.d entry.
gpshead 1ad88f5
Undo addition to PyConfig to ease backporting.
gpshead 0c83111
Remove the Tools/scripts/ example and timing code.
gpshead 5d39ab6
un-add the <math.h> include (not needed for PR anymore)
gpshead 5b77b3e
Remove added unused imports.
gpshead de00cdc
Tabs -> Spaces
gpshead 3cc8553
make html and make doctest in Doc pass.
gpshead da97e65
Raise the default limit and the threshold.
gpshead ef03a16
Remove xmlrpc.client changes, test-only.
gpshead e916845
Rearrange the new stdtypes docs, w/limits + caution.
gpshead 101502e
Make a huge int a SyntaxError with lineno when parsing.
gpshead fa8a58a
Mention the chosen default in the NEWS entry.
gpshead 313ab6d
Properly clear & free the prior exception.
gpshead 614cd02
Add a note to the float.as_integer_ratio() docs.
gpshead 16ad090
Clarify the documentation wording and error msg.
gpshead 4eb72e6
Fix test_idle, it used a long int on a line.
gpshead da36550
Rename the test.support context manager and document it.
gpshead f4372cc
Documentation cleanup.
gpshead c421853
Update attribution in Misc/NEWS.d
gpshead 9f2168a
Regen global strings
tiran 3c8504b
Make the doctest actually run & fix it.
gpshead 1586419
Fix the docs build.
gpshead 94bd3ee
Rename the news file to appease the Bedevere bot.
gpshead 0b91f65
Regen argument clinic after the rebase merge.
gpshead 02776f9
Hexi hexa
tiran 173fa4e
Hexi hexa 2
tiran File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.