mirror of
https://github.com/go-gitea/gitea
synced 2024-11-07 18:54:25 +00:00
f2a3a9117e
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 * Also allow git max line length <4096 * Add test case Fix #13602 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Andrew Thornton <art27@cantab.net> |
||
---|---|---|
.. | ||
testdata/academic-module | ||
gitdiff_test.go | ||
gitdiff.go | ||
main_test.go |