Hello Sean, On 16.04.21 23:58, 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: Sean Anderson <sean.ander...@seco.com> > --- > > lib/image-sparse.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-)
Wow chunk size larger than 4G! But patch seems valid, so Reviewed-by: Heiko Schocher <h...@denx.de> bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: h...@denx.de