forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 4
Integrate 2.7.18.14 into 2.7 #85
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
Open
icanhasmath
wants to merge
24
commits into
2.7
Choose a base branch
from
2.7.18.14-part2
base: 2.7
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
b20e2a5
Address CVE-2025-8194 (tarfile) and CVE-2026-4786 (webbrowser)
icanhasmath ec88ac6
Reject control characters in header/command APIs (injection cluster)
icanhasmath f4c3f15
Reject header injection when generating email messages (CVE-2024-6923)
icanhasmath 72c20be
Fix Windows test-suite hangs on invalid file descriptors
icanhasmath 392e389
asyncore: recognize WSAECONNRESET/WSAESHUTDOWN as disconnects on Windows
icanhasmath 1a63015
test: gate test_bigrepeat on sys.maxsize, not sys.maxint (win64)
icanhasmath 37f5972
test_socket: restore missing _have_socket_can/_have_socket_alg helpers
icanhasmath c54ba12
Harden zipfile against overlapping entries and bad ZIP64 locator
icanhasmath 13d66c6
ctypes: fix find_msvcrt on VS2015+ builds; skip win64 pointer-truncat…
icanhasmath 6e3990b
Reject misplaced square brackets in parsed URL hosts (CVE-2025-0938)
icanhasmath 3b46f5d
ssl: accept WSAENOTCONN when probing whether a socket is connected
icanhasmath 5fab2f3
Fix quadratic complexity in minidom and os.path.expandvars
icanhasmath 8c9b9a1
test_socket: bind 'support' alias (partial 3.x backport)
icanhasmath 8ee2195
Fix quadratic complexity in HTMLParser at EOF (CVE-2025-6069)
icanhasmath 11825ac
test_ctypes: don't assert find_library("c") is non-None on UCRT
icanhasmath b2d9914
Add strict validation option to base64.b64decode
icanhasmath 3d4ca65
test_ssl: accept WSAENOTCONN and skip TLS1.3/PHA tests on this build
icanhasmath 8420333
Don't normalize AREGTYPE follow-up headers to DIRTYPE (CVE-2025-13462)
icanhasmath 0c11934
test.support: add requires_linux_version (used by forward-ported tests)
icanhasmath f258e71
2.7.18.14 Release
icanhasmath 584efeb
test_ftplib: add cmd_noop to dummy server; skip flaky source_address …
icanhasmath 50cd81e
fix(tests): skip-guard expandvars nonascii test; restore _have_socket…
icanhasmath 07c707f
2.7.18.14 Release: document Windows regression remediation
icanhasmath dc6c0ed
Merge branch '2.7.18.14' (bc3b091) into the Windows remediation release
icanhasmath 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed real —
NEWLINE_WITHOUT_FWSP.search(value)returns no match forvalueending in a bare CR/LF/CRLF (e.g.Subject: evil\n), because the[^ \t]classes require a following character. The generator then appends its own newline, prematurely terminating the header block. Fixed by switching to negative lookaheads (which also fire at end-of-string, while still permitting valid CRLF folding). Addressed in follow-up #86 with trailing-newline regression tests; fulltest_emailstill 280/280.