diff options
author | Sean Anderson <sean.anderson@seco.com> | 2021-05-27 12:02:34 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-06-01 16:48:54 -0400 |
commit | 89be8e31ccd1c53b010385ed0807eb00f0eec06a (patch) | |
tree | 376f13956ee8596593a158d5d65c07b3a6daf1af /lib/zlib/trees.h | |
parent | d8729a114e1e98806cffb87d2dca895f99a0170a (diff) | |
download | u-boot-WIP/01Jun2021.zip u-boot-WIP/01Jun2021.tar.gz u-boot-WIP/01Jun2021.tar.bz2 |
fastboot: Fix overflow when calculating chunk sizeWIP/01Jun2021
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>
Diffstat (limited to 'lib/zlib/trees.h')
0 files changed, 0 insertions, 0 deletions