-
-
Notifications
You must be signed in to change notification settings - Fork 33k
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
+583
−29
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
picnixz 12bef9c
add tests
picnixz 1d7e599
docs
picnixz 3dcd9bd
NEWS
picnixz 192fe08
Merge branch 'main' into feat/xml/mitigation-api-90949
picnixz 0ecbd55
fix docs
picnixz 07445ad
fix tests
picnixz 9c7371f
regen SBOM
picnixz 1085584
remove unused include
picnixz c10fe91
fix possible error handling
picnixz 18d175f
undef macro after usage
picnixz 911b2b7
Update Lib/test/test_pyexpat.py
picnixz d636685
update comments
picnixz b951065
use better test names
picnixz e11bf14
simplify roles usage
picnixz 3e45613
prevent reparse deferral of Expat to blow up
picnixz fb83fb5
test better numeric values
picnixz 7f91f2e
update docs
picnixz 64af05c
avoid deprecated `XML_GetError{Line,Column}Number`
picnixz b01e53d
raise `NotImplementedError` for unavailable mitigation APIs
picnixz cd040bf
improve various wordings
picnixz a09cd15
avoid SBOM alteration
picnixz a3fc3b3
regen files
picnixz 5afe1ad
improve test assertions
picnixz b6949dd
improve test genericity
picnixz bdbd382
split tests even if they could end up duplicated
picnixz 0c03735
raise AttributeError when method is not available and reorder interface
picnixz 220f3e2
reoder docs
picnixz 9d538e4
address review
picnixz 209f300
update capsule API
picnixz 8407cfc
amend docs
picnixz e898811
use "NOTE:"
picnixz ce8cb48
address final comments
picnixz 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.