diff options
author | Russell Belfer <rb@github.com> | 2014-05-12 10:44:13 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2014-05-12 10:44:13 -0700 |
commit | af567e8853e359df3b3abb7d3f7c15c3b1b391c7 (patch) | |
tree | b107914c977657dbe32c76cedea7d44e88f80a8d /src/pack-objects.c | |
parent | ce3b71d91b9cac3b462dec9ac2c7e397b55c00a6 (diff) | |
parent | 1e4976cb015bd10a2a8c377e02801306473afc26 (diff) | |
download | libgit2-af567e8853e359df3b3abb7d3f7c15c3b1b391c7.tar.gz |
Merge pull request #2334 from libgit2/rb/fix-2333
Be more careful with user-supplied buffers
Diffstat (limited to 'src/pack-objects.c')
-rw-r--r-- | src/pack-objects.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pack-objects.c b/src/pack-objects.c index 8b6acee15..3d3330ae8 100644 --- a/src/pack-objects.c +++ b/src/pack-objects.c @@ -1278,6 +1278,7 @@ int git_packbuilder_foreach(git_packbuilder *pb, int (*cb)(void *buf, size_t siz int git_packbuilder_write_buf(git_buf *buf, git_packbuilder *pb) { PREPARE_PACK; + git_buf_sanitize(buf); return write_pack(pb, &write_pack_buf, buf); } |