summaryrefslogtreecommitdiff
path: root/archive.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-01-12 20:09:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-01-13 20:12:52 (GMT)
commit81d2caefedefa40557baf7af846580f35de3f995 (patch)
tree983d8109d02eaf781cab0c8cf6b69e270b5b2067 /archive.h
parent902f235378cb2b2f6dd5dd664b9630c95321f0ae (diff)
downloadgit-81d2caefedefa40557baf7af846580f35de3f995.zip
git-81d2caefedefa40557baf7af846580f35de3f995.tar.gz
git-81d2caefedefa40557baf7af846580f35de3f995.tar.bz2
strbuf_addbuf(): allow passing the same buf to dst and src
If sb and sb2 are the same (i.e. doubling the string), the underlying strbuf_add() can make sb2->buf invalid by calling strbuf_grow(sb) at the beginning; if realloc(3) done by strbuf_grow() needs to move the string, strbuf_add() will read from an already freed buffer. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'archive.h')
0 files changed, 0 insertions, 0 deletions