-
Notifications
You must be signed in to change notification settings - Fork 1.2k
PYTHON-5983 Validate uncompressed size in OP_COMPRESSED messages #2976
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
blink1073
merged 15 commits into
mongodb:main
from
dfengliu:fix/op-compressed-size-validation
Sep 2, 2026
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
d0d827b
Validate uncompressed size in OP_COMPRESSED messages
dfengliu 670d454
Move decompression size validation to _decompress in compression_support
dfengliu c07a7b9
Add pre-decompression uncompressed_size validation alongside post-dec…
dfengliu 5ef3abc
Restore decompress as standalone function, improve test coverage
dfengliu 0d4c748
Bound decompression output size during decompression
dfengliu 7c1fe73
Merge branch 'main' into fix/op-compressed-size-validation
aclark4life 30d197a
Make max_message_size required and fix decompress spy compatibility
dfengliu c57a7b1
PYTHON-5983 Validate snappy declared uncompressed length before decom…
dfengliu b251bfa
Merge branch 'main' into fix/op-compressed-size-validation
dfengliu 06da304
PYTHON-5983 Reject truncated and trailing-garbage compressed messages
dfengliu ea24e9d
Merge branch 'main' into fix/op-compressed-size-validation
dfengliu 48db73b
PYTHON-5983 Align decompress bound with message size, reject nonposit…
dfengliu 5c634e2
PYTHON-5983 Fix max message size wording, satisfy lint and typing
blink1073 d72f6e6
PYTHON-5983 Hoist remaining inline imports to module scope in tests
blink1073 aad4d0b
PYTHON-5983 Fix CI failures on Windows/PyPy and PyPy tracemalloc import
blink1073 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
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.
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.