mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-01 01:27:11 +00:00
This adds in missing calls to `git_buf_sanitize` and fixes a number of places where `git_buf` APIs could inadvertently write NUL terminator bytes into invalid buffers. This also changes the behavior of `git_buf_sanitize` to NUL terminate a buffer if it can and of `git_buf_shorten` to do nothing if it can. Adds tests of filtering code with zeroed (i.e. unsanitized) buffer which was previously triggering a segfault. |
||
|---|---|---|
| .. | ||
| blob | ||
| commit | ||
| raw | ||
| tag | ||
| tree | ||
| cache.c | ||
| lookup.c | ||
| lookupbypath.c | ||
| message.c | ||
| peel.c | ||
| shortid.c | ||