3 test_description
='git apply with too-large patch'
5 TEST_PASSES_SANITIZE_LEAK
=true
8 test_expect_success EXPENSIVE
'git apply rejects patches that are too large' '
9 sz=$((1024 * 1024 * 1023)) &&
12 diff --git a/file b/file
19 } | test_copy_bytes $sz | test_must_fail git apply 2>err &&
20 grep "git apply: failed to read" err