proxmox-backup/src/api2/backup
Stefan Reiter 8268c9d161 fix overflow panic during upload
if *only* data chunks are registered (high chance during incremental
backup), then chunk_count might be one lower then upload_stat.count
because of the zero chunk being unconditionally uploaded but not used.
Thus when subtracting the two, an overflow would occur.

In general, don't let the client make the server panic, instead just set
duplicates to 0.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
2020-06-24 09:07:22 +02:00
..
environment.rs fix overflow panic during upload 2020-06-24 09:07:22 +02:00
upload_chunk.rs switch from failure to anyhow 2020-04-17 18:43:30 +02:00