summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.asm-generic
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-11-08 17:13:23 +0100
committerBoris Brezillon <boris.brezillon@free-electrons.com>2017-12-18 13:30:04 +0100
commitb1d030f804fbf8f502756231d475fcf8fd6a86ad (patch)
treed3114c6ab32e1e67840f5cfb0ae0104886deb9bc /scripts/Makefile.asm-generic
parentmtd: cfi: convert inline functions to macros (diff)
downloadlinux-b1d030f804fbf8f502756231d475fcf8fd6a86ad.tar.xz
linux-b1d030f804fbf8f502756231d475fcf8fd6a86ad.zip
mtd: sharpslpart: fix overflow on block_adr calculation
Multiplying block_num and mtd->erasesize may potentially overflow as they are both unsigned ints and so the multiplication is evaluated in unsigned int arithmetic. Cast block_adr to off_t to ensure multiplication is off_t sized to avoid any potential overflow. Detected by CoverityScan, CID#1461264 ("Unintentional integer overflow") Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'scripts/Makefile.asm-generic')
0 files changed, 0 insertions, 0 deletions