[PATCH 1/1] cmd: mtd: avoid unintentional integer overflow

Miquel Raynal miquel.raynal at bootlin.com
Thu Jan 11 08:48:55 CET 2024


Hi Heinrich,

heinrich.schuchardt at canonical.com wrote on Thu, 11 Jan 2024 08:31:55
+0100:

> mtd dump beyond 4 GiB will show incorrect results.
> 
> Multiplying two u32 will yield a u32. Add a missing cast.

Good point, thanks for the fix.

Reviewed-by: Miquel Raynal <miquel.raynal at bootlin.com>

Thanks,
Miquèl


More information about the U-Boot mailing list