1.5.25. Migration to 7.9.1

1.5.25.1. Stylechecks

CWE rule CWE-467

The message key sizeof_on_pointer for CWE-467 has been split 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 an expression argument is expected for the other keys. The message key sizeof_on_pointer_in_malloc specifically reports potentially incorrect sizeof calls used as the size argument for malloc. The new message keys should only be disabled if the original message key was previously disabled (rather than the entire rule).

A restricted version of CWE-467 (indicated by “malloced pointer type” in the description) can be enabled with sizeof_on_pointer_in_malloc.