0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-24 00:03:11 -05:00
forgejo/services/gitdiff
zeripath 0767fe0d80
Prevent panic on diff generation (#16950)
The lastLeftIdx should be reset at the same time as creating a new section otherwise
it is possible for a second addition to end up attempting to read a nil entry.

Fix #16943

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-09-05 12:16:49 +02:00
..
testdata/academic-module
csv.go Add Tabular Diff for CSV files (#14661) 2021-03-29 22:44:28 +02:00
csv_test.go Fixed assert statements. (#16089) 2021-06-07 07:27:09 +02:00
gitdiff.go Prevent panic on diff generation (#16950) 2021-09-05 12:16:49 +02:00
gitdiff_test.go Repare and Improve GetDiffRangeWithWhitespaceBehavior (#16894) 2021-08-31 06:16:23 +02:00
main_test.go