summaryrefslogtreecommitdiff
path: root/tree-diff.c
diff options
context:
space:
mode:
authorLibravatar René Scharfe <rene.scharfe@lsrfire.ath.cx>2007-12-20 13:20:15 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2007-12-26 17:52:32 -0800
commit7ed0988adc0a3cb3f103c105af387e3ac48eea61 (patch)
treef917862a230f7c19a470e6988e332129f3bd0fcd /tree-diff.c
parentDon't dereference NULL upon lookup failure. (diff)
downloadtgif-7ed0988adc0a3cb3f103c105af387e3ac48eea61.tar.xz
Make "--pretty=format" parser a bit more careful.
When a commit message that does not have a terminating LF is read in and the memory that was allocated to read it happens to have a LF immediately after that, the code was not careful and went past the terminating NUL. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tree-diff.c')
0 files changed, 0 insertions, 0 deletions