8000 Check object lengths against headers in `read_loose` by howtonotwin · Pull Request #7178 · libgit2/libgit2 · GitHub
[go: up one dir, main page]

Skip to content

Check object lengths against headers in read_loose#7178

Open
howtonotwin wants to merge 1 commit intolibgit2:mainfrom
howtonotwin:read_loose_standard-bounds
Open

Check object lengths against headers in read_loose#7178
howtonotwin wants to merge 1 commit intolibgit2:mainfrom
howtonotwin:read_loose_standard-bounds

Conversation

@howtonotwin
Copy link

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.

Avoid a buffer overrun when an object's header specifies a short length
but the body is longer (fix libgit2#7177). Take care to preserve the behavior
that too-short object bodies are not an error but get zero-padded.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Out-of-bounds write when reading small objects that claim to be smaller than they are

1 participant

0