Prevent panic on diff generation (#16950) #16951

Merged
lunny merged 2 commits from backport-16950-v1.15 into release/v1.15 2021-09-05 10:17:42 +00:00
Contributor

Backport #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

Backport #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>
lafriks (Migrated from github.com) approved these changes 2021-09-05 08:48:01 +00:00
6543 approved these changes 2021-09-05 10:17:25 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No project
No Assignees
3 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lunny/gitea#16951
No description provided.