Repository navigation
gh-90949: add Expat API to prevent XML deadly allocations #139234
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 1 commit
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
c1c23fb
Expose XML Expat 2.7.2 mitigation APIs
12bef9c
add tests
1d7e599
docs
3dcd9bd
NEWS
192fe08
Merge branch 'main' into feat/xml/mitigation-api-90949
0ecbd55
fix docs
07445ad
fix tests
9c7371f
regen SBOM
1085584
remove unused include
c10fe91
fix possible error handling
18d175f
undef macro after usage
911b2b7
Update Lib/test/test_pyexpat.py
d636685
update comments
b951065
use better test names
e11bf14
simplify roles usage
3e45613
prevent reparse deferral of Expat to blow up
fb83fb5
test better numeric values
7f91f2e
update docs
64af05c
avoid deprecated `XML_GetError{Line,Column}Number`
b01e53d
raise `NotImplementedError` for unavailable mitigation APIs
cd040bf
improve various wordings
a09cd15
avoid SBOM alteration
a3fc3b3
regen files
5afe1ad
improve test assertions
b6949dd
improve test genericity
bdbd382
split tests even if they could end up duplicated
0c03735
raise AttributeError when method is not available and reorder interface
220f3e2
reoder docs
9d538e4
address review
209f300
update capsule API
8407cfc
amend docs
e898811
use "NOTE:"
ce8cb48
address final comments
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
Some comments aren't visible on the classic Files Changed page.
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
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.