author | Jim Meyering <meyering@redhat.com> | |
Tue, 19 Aug 2008 18:42:04 +0000 (20:42 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 20 Aug 2008 01:08:00 +0000 (18:08 -0700) | ||
commit | c8c4450e1949055cb57e32425b125f45f3481742 | |
tree | 3168fbe0efe3bef657a594ad2dd743bc57f5e6e9 | tree | snapshot |
parent | 26e08a0190cb3354e43bab13ea693a5c826a8fe1 | commit | diff |
git format-patch: avoid underrun when format.headers is empty or all NLs
* builtin-log.c (add_header): Avoid a buffer underrun when
format.headers is empty or all newlines. Reproduce with this:
git config format.headers '' && git format-patch -1
Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
* builtin-log.c (add_header): Avoid a buffer underrun when
format.headers is empty or all newlines. Reproduce with this:
git config format.headers '' && git format-patch -1
Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-log.c | diff | blob | history |