integer_overflow_sizeof: add a check for integer overflows involving sizeof()
commit889471a3bbcc45b96e7587a3bad153758e82a97c
authorDan Carpenter <dan.carpenter@linaro.org>
Mon, 16 Sep 2024 14:25:16 +0000 (16 17:25 +0300)
committerDan Carpenter <dan.carpenter@linaro.org>
Mon, 16 Sep 2024 14:25:16 +0000 (16 17:25 +0300)
treea6966625c7936bfe8406c01f60789b040a66607e
parent748684eb5693af1915eaff04e3146a707305d556
integer_overflow_sizeof: add a check for integer overflows involving sizeof()

The problem with integer overflows is that they are often harmless so there
are a lot of false positives.  By targeting math which involves sizeof()
then the hope is that this will be warn about high value overflows.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
check_integer_overflow_sizeof.c [new file with mode: 0644]
check_list.h