summaryrefslogtreecommitdiff
path: root/include/debug_uart.h
diff options
context:
space:
mode:
authorSean Anderson <[email protected]>2021-05-27 12:02:34 -0400
committerTom Rini <[email protected]>2021-06-01 16:48:54 -0400
commit89be8e31ccd1c53b010385ed0807eb00f0eec06a (patch)
tree376f13956ee8596593a158d5d65c07b3a6daf1af /include/debug_uart.h
parentd8729a114e1e98806cffb87d2dca895f99a0170a (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 <[email protected]> Reviewed-by: Heiko Schocher <[email protected]>
Diffstat (limited to 'include/debug_uart.h')
0 files changed, 0 insertions, 0 deletions