diff options
author | Zichen Xie <zichenxie0106@gmail.com> | 2024-10-23 16:13:10 -0500 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2024-12-05 11:09:12 +0100 |
commit | 9b458e8be0d13e81ed03fffa23f8f9b528bbd786 (patch) | |
tree | 484766fe015b9685d9fb094d97a1d32d786c0506 /net/unix/af_unix.c | |
parent | d8e4771f99c0400a1873235704b28bb803c83d17 (diff) | |
download | linux-9b458e8be0d13e81ed03fffa23f8f9b528bbd786.tar.gz linux-9b458e8be0d13e81ed03fffa23f8f9b528bbd786.tar.bz2 linux-9b458e8be0d13e81ed03fffa23f8f9b528bbd786.zip |
mtd: diskonchip: Cast an operand to prevent potential overflow
There may be a potential integer overflow issue in inftl_partscan().
parts[0].size is defined as "uint64_t" while mtd->erasesize and
ip->firstUnit are defined as 32-bit unsigned integer. The result of
the calculation will be limited to 32 bits without correct casting.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Zichen Xie <zichenxie0106@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions