Skip to content
Commit 6b37320c authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Dario Binacchi
Browse files

cmd: mtd: avoid unintentional integer overflow



mtd dump beyond 4 GiB will show incorrect results.

Multiplying two u32 will yield a u32. Add a missing cast.

Fixes: 5db66b3a ("cmd: mtd: add 'mtd' command")
Addresses-Coverity-ID: 477205 ("Unintentional integer overflow")
Signed-off-by: default avatarHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/all/20240111073155.19545-1-heinrich.schuchardt@canonical.com


Signed-off-by: default avatarDario Binacchi <dario.binacchi@amarulasolutions.com>
parent 697758e7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment