aboutsummaryrefslogtreecommitdiffstats
path: root/options/license/AGPL-3.0-or-later
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-03-06 20:21:56 +0000
committerGitHub <noreply@github.com>2021-03-06 20:21:56 +0000
commita68db9076aa47f3464df62edaf35808b428d7c59 (patch)
treeee3ff1af21e89513d352c5b68b620d6196069239 /options/license/AGPL-3.0-or-later
parent5ccf8b64306fd6d695e6938fea7ad2f85df5717c (diff)
downloadgitea-a68db9076aa47f3464df62edaf35808b428d7c59.tar.gz
gitea-a68db9076aa47f3464df62edaf35808b428d7c59.zip
Fix race in LFS ContentStore.Put(...) (#14895)
Continuing on from #14888 The previous implementation has race whereby an incomplete upload or hash mismatch upload can end up in the ContentStore. This PR moves the validation into the reader so that if there is a hash error or size mismatch the reader will return with an error instead of an io.EOF causing the storage to abort the storage. Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'options/license/AGPL-3.0-or-later')
0 files changed, 0 insertions, 0 deletions