summaryrefslogtreecommitdiff
path: root/Documentation/diff-config.txt
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2014-08-23 05:32:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-08-25 19:20:57 (GMT)
commitc252785982c268e5c969900c677322744d09f52e (patch)
tree23f0fdc47e95e924827fc3039351f09a482f1eca /Documentation/diff-config.txt
parent3c078b9c860c7c1dbe8782aa1f79877354cbc602 (diff)
downloadgit-c252785982c268e5c969900c677322744d09f52e.zip
git-c252785982c268e5c969900c677322744d09f52e.tar.gz
git-c252785982c268e5c969900c677322744d09f52e.tar.bz2
fast-import: fix buffer overflow in dump_tags
When creating a new annotated tag, we sprintf the refname into a static-sized buffer. If we have an absurdly long tagname, like: git init repo && cd repo && git commit --allow-empty -m foo && git tag -m message mytag && git fast-export mytag | perl -lpe '/^tag/ and s/mytag/"a" x 8192/e' | git fast-import <input we'll overflow the buffer. We can fix it by using a strbuf. Signed-off-by: Jeff King <peff@peff.net> Reviewed-by: Michael Haggerty <mhagger@alum.mit.edu> Reviewed-by: Ronnie Sahlberg <sahlberg@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/diff-config.txt')
0 files changed, 0 insertions, 0 deletions