Check object lengths against headers in `read_loose` by howtonotwin · Pull Request #7178 · libgit2/libgit2
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.
approved these changes
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request
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