commit | 89be8e31ccd1c53b010385ed0807eb00f0eec06a | [log] [tgz] |
---|---|---|
author | Sean Anderson <sean.anderson@seco.com> | Thu May 27 12:02:34 2021 -0400 |
committer | Tom Rini <trini@konsulko.com> | Tue Jun 01 16:48:54 2021 -0400 |
tree | 376f13956ee8596593a158d5d65c07b3a6daf1af | |
parent | d8729a114e1e98806cffb87d2dca895f99a0170a [diff] |
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>