diff options
author | Anton Moryakov <ant.v.moryakov@gmail.com> | 2024-12-14 15:31:05 +0300 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2024-12-17 14:34:24 +0100 |
commit | 78f4f38bd3de8b5c590cbc09ce43812306207d95 (patch) | |
tree | 47f98c02468af558405392c2fe077478c380fe79 /tests/ubifs_tools-tests/images/lpt_free.gz | |
parent | d4710ca5b5105d998e042a77cb66a2a5ac7bafb5 (diff) |
ubi-utils: Fix integer overflow in mtdinfo.c
Report of the static analyzer:
The value of an arithmetic expression 'reginfo->offset + i * reginfo->erasesize' is a subject to overflow
because its operands are not cast to a larger data type before performing arithmetic
Corrections explained:
Added casting i and start to unsigned long long
Triggers found by static analyzer Svace.
Signed-off-by: Anton Moryakov <ant.v.moryakov@gmail.com>
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/ubifs_tools-tests/images/lpt_free.gz')
0 files changed, 0 insertions, 0 deletions