summaryrefslogtreecommitdiffstats
path: root/models/attachment.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-09-05 11:16:49 +0100
committerGitHub <noreply@github.com>2021-09-05 12:16:49 +0200
commit0767fe0d806a36b5d23bc2714c740be93a6b18dc (patch)
treefe8332d499b32095cb2417f97dbfc2f1765926ae /models/attachment.go
parenteb0330a3fe3983c9c5863f2efb2129e691818926 (diff)
downloadgitea-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