author | Stephen Boyd <bebarino@gmail.com> | |
Tue, 31 Mar 2009 23:24:38 +0000 (16:24 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 1 Apr 2009 18:05:31 +0000 (11:05 -0700) | ||
commit | 871d21d42e0f782b7cb111beec8c252e9aa627ff | |
tree | bfead1becb7382b905217be564a04313bad52205 | tree | snapshot |
parent | b09b868f7fee689483d00bea3d52c0f14a80386c | commit | diff |
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>
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>
pretty.c | diff | blob | history |