summaryrefslogtreecommitdiff
path: root/test-dump-cache-tree.c
diff options
context:
space:
mode:
authorStephen Boyd <bebarino@gmail.com>2009-03-31 23:24:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-04-01 18:05:31 (GMT)
commit871d21d42e0f782b7cb111beec8c252e9aa627ff (patch)
treebfead1becb7382b905217be564a04313bad52205 /test-dump-cache-tree.c
parentb09b868f7fee689483d00bea3d52c0f14a80386c (diff)
downloadgit-871d21d42e0f782b7cb111beec8c252e9aa627ff.zip
git-871d21d42e0f782b7cb111beec8c252e9aa627ff.tar.gz
git-871d21d42e0f782b7cb111beec8c252e9aa627ff.tar.bz2
format_sanitized_subject: Don't trim past initial length of strbuf
If the subject line is '...' the strbuf will be accessed before the first dot is added; potentially changing the strbuf passed into the function or accessing sb->buf[-1] if it was originally empty. Reported-by: René Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'test-dump-cache-tree.c')
0 files changed, 0 insertions, 0 deletions