Code

revert: fix off by one read when searching the end of a commit subject
authorChristian Couder <chriscool@tuxfamily.org>
Thu, 22 Jul 2010 13:18:29 +0000 (15:18 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Jul 2010 23:08:14 +0000 (16:08 -0700)
commit2c048a3038fd4d94e150fbc1dfd2242325ca7db6
tree18711aab4aa9fc19a4cff3c39bde1801b033e172
parent971ecbd1f8d1468951274d01103f80dd7d32d110
revert: fix off by one read when searching the end of a commit subject

A test case is added but the problem can only be seen when running
the test case with --valgrind.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Acked-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/revert.c
t/t3505-cherry-pick-empty.sh