Reported by Florian Weimer and Todd Zullinger. Signed-off-by: Elijah Newren <newren@xxxxxxxxx> --- t/t6101-rev-parse-parents.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/t6101-rev-parse-parents.sh b/t/t6101-rev-parse-parents.sh index 8c617981a3..7b1b2dbdf2 100755 --- a/t/t6101-rev-parse-parents.sh +++ b/t/t6101-rev-parse-parents.sh @@ -214,4 +214,8 @@ test_expect_success 'rev-list merge^-1x (garbage after ^-1)' ' test_must_fail git rev-list merge^-1x ' +test_expect_failure 'rev-parse $garbage^@ should not segfault' ' + git rev-parse ffffffffffffffffffffffffffffffffffffffff^@ +' + test_done -- 2.17.0.1025.g36b5c64692