aboutsummaryrefslogtreecommitdiff
path: root/lib/vsprintf.c
diff options
context:
space:
mode:
authorSean Anderson <sean.anderson@seco.com>2021-05-27 12:02:34 -0400
committerTom Rini <trini@konsulko.com>2021-06-01 16:48:54 -0400
commit89be8e31ccd1c53b010385ed0807eb00f0eec06a (patch)
tree376f13956ee8596593a158d5d65c07b3a6daf1af /lib/vsprintf.c
parentd8729a114e1e98806cffb87d2dca895f99a0170a (diff)
downloadu-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/vsprintf.c')
0 files changed, 0 insertions, 0 deletions