From c922b01f54c4bebe84daeacf014cfbc8dc68479b Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 27 Apr 2009 11:10:24 -0700 Subject: grep: fix segfault when "git grep '('" is given Signed-off-by: Linus Torvalds Signed-off-by: Junio C Hamano --- t/t7002-grep.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 't') diff --git a/t/t7002-grep.sh b/t/t7002-grep.sh index 5e359cb561..087bacb897 100755 --- a/t/t7002-grep.sh +++ b/t/t7002-grep.sh @@ -26,6 +26,10 @@ test_expect_success setup ' git commit -m initial ' +test_expect_success 'grep should not segfault with a bad input' ' + test_must_fail git grep "(" +' + for H in HEAD '' do case "$H" in -- cgit v1.2.3