diff options
author | zeripath <art27@cantab.net> | 2020-11-21 22:41:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-21 17:41:24 -0500 |
commit | 45ca2e460538943b0db5421770297e2929e4273a (patch) | |
tree | f03166f3bc2039043dbead2ad8c03a0a555e7e13 /options/locale/locale_ja-JP.ini | |
parent | b651409c0a88ba887422092d8465e75eb09c4db7 (diff) | |
download | gitea-45ca2e460538943b0db5421770297e2929e4273a.tar.gz gitea-45ca2e460538943b0db5421770297e2929e4273a.zip |
Handle incomplete diff files properly (#13662)
* Handle incomplete diff files properly
The code for parsing diff hunks has a bug whereby a very long line
in a very long diff would not be completely read leading to an unexpected
character.
This PR ensures that the line is completely cleared
Fix #13602
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Also allow git max line length <4096
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add test case
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'options/locale/locale_ja-JP.ini')
0 files changed, 0 insertions, 0 deletions