diff options
Diffstat (limited to 'tests/patch/parse.c')
| -rw-r--r-- | tests/patch/parse.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/patch/parse.c b/tests/patch/parse.c index 77a6dd60d..9067f4a9d 100644 --- a/tests/patch/parse.c +++ b/tests/patch/parse.c @@ -174,3 +174,10 @@ void test_patch_parse__truncated_no_newline_at_end_of_file(void) git_patch_free(patch); } + +void test_patch_parse__line_number_overflow(void) +{ + git_patch *patch; + cl_git_fail(git_patch_from_buffer(&patch, PATCH_INTMAX_NEW_LINES, strlen(PATCH_INTMAX_NEW_LINES), NULL)); + git_patch_free(patch); +} |
