mirror of
https://git.proxmox.com/git/libgit2
synced 2025-12-07 10:46:26 +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. |
||
|---|---|---|
| .. | ||
| filter.c | ||
| fromchunks.c | ||
| write.c | ||