1.4.14. Migration to 7.9.1¶
1.4.14.1. Stylechecks¶
CWE rule CWE-467¶
The message key sizeof_on_pointer of CWE-467 has been split up into
the new keys sizeof_on_pointer, sizeof_on_pointer_in_malloc,
and sizeof_on_pointer_type. The latter key reports violations if sizeof has
a type argument whereas for the other keys an expression argument is expected. The
message key sizeof_on_pointer_in_malloc particularly reports a probably wrong
sizeof call as size argument of malloc. Only if the message key has been disabled
before (instead of disabling the whole rule) the new message keys should be disabled,
too.
A restricted version of CWE-467 (indicated by “malloced pointer type” in the
description) can be enabled with sizeof_on_pointer_in_malloc.