Commit Graph

2 Commits

Author SHA1 Message Date
Sean Anderson
a9ee746687 fastboot: Fix overflow when calculating chunk size
If a chunk was larger than 4GiB, then chunk_data_sz would overflow and
blkcnt would not be calculated correctly. Upgrade it to a u64 and cast
its multiplicands as well. Also fix bytes_written while we're at it.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
2023-10-19 00:15:40 +08:00
thead_admin
43db9e00d5 Linux_SDK_V0.9.5 2022-09-13 11:04:33 +08:00