diff options
author | Stephen Boyd <bebarino@gmail.com> | 2009-04-01 01:24:38 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-04-01 20:05:31 +0200 |
commit | 871d21d42e0f782b7cb111beec8c252e9aa627ff (patch) | |
tree | bfead1becb7382b905217be564a04313bad52205 /revision.h | |
parent | log-tree: fix patch filename computation in "git format-patch" (diff) | |
download | git-871d21d42e0f782b7cb111beec8c252e9aa627ff.tar.xz git-871d21d42e0f782b7cb111beec8c252e9aa627ff.zip |
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 'revision.h')
0 files changed, 0 insertions, 0 deletions