Code

apply: do not barf on patch with too large an offset
authorJunio C Hamano <gitster@pobox.com>
Mon, 11 Feb 2008 23:32:29 +0000 (15:32 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Feb 2008 23:48:10 +0000 (15:48 -0800)
commit52f3c81a9d41af019ab8f05051c5251f078b12e5
tree6cebba3fe821be8561a7c6ff1d648748450774c7
parentb2979ff599a6bcf9dbf5e2ef1e32b81a1b88e115
apply: do not barf on patch with too large an offset

Previously a patch that records too large a line number caused the
offset matching code in git-apply to overstep its internal buffer.

Noticed by Johannes Schindelin.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-apply.c
t/t4105-apply-fuzz.sh [new file with mode: 0755]