diff options
author | zeripath <art27@cantab.net> | 2021-09-05 11:16:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-05 12:16:49 +0200 |
commit | 0767fe0d806a36b5d23bc2714c740be93a6b18dc (patch) | |
tree | fe8332d499b32095cb2417f97dbfc2f1765926ae /models/attachment.go | |
parent | eb0330a3fe3983c9c5863f2efb2129e691818926 (diff) | |
download | gitea-0767fe0d806a36b5d23bc2714c740be93a6b18dc.tar.gz gitea-0767fe0d806a36b5d23bc2714c740be93a6b18dc.zip |
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>
Diffstat (limited to 'models/attachment.go')
0 files changed, 0 insertions, 0 deletions