Skip to content

Check object lengths against headers in read_loose - #7236

Merged
ethomson merged 2 commits into
mainfrom
ethomson/lengths
Apr 30, 2026
Merged

ethomson merged 2 commits into
mainfrom
ethomson/lengths

Conversation

@ethomson

Copy link
Copy Markdown
Member

Cherry-picking #7178 with a test to validate

howtonotwin and others added 2 commits January 2, 2026 03:41
Avoid a buffer overrun when an object's header specifies a short length
but the body is longer (fix #7177). Take care to preserve the behavior
that too-short object bodies are not an error but get zero-padded.
Add a test that looks up an invalid, truncated object, that is shorter
than the advertised length.
@ethomson
ethomson merged commit 70ff46d into main Apr 30, 2026
19 checks passed
@ethomson ethomson added the bug label Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants