Re: [PATCH v2] fastboot: Fix overflow when calculating chunk size

2021-06-01 Thread Tom Rini
On Thu, May 27, 2021 at 12:02:34PM -0400, Sean Anderson wrote: > 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

Re: [PATCH v2] fastboot: Fix overflow when calculating chunk size

2021-05-27 Thread Sean Anderson
This should have Reviewed-by: Heiko Schocher from v1, which I forgot to add. On 5/27/21 12:02 PM, Sean Anderson wrote: 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

[PATCH v2] fastboot: Fix overflow when calculating chunk size

2021-05-27 Thread Sean Anderson
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 --- sizes for pico-dwarf-imx7d are as follows: text