Skip to content

Add option to MISRA23_21.17 to not flag unbound functions if destination is checked with sizeof #99

@kylejacksonb

Description

@kylejacksonb

MISRA C 23's MISRA23_21.17 is part of a multicheck ( M18-0-5, CPP_L006, MISRA08_18-0-5, MISRA23_21.17 and MISRA23_21.2.2 )

The problem is that MISRA23_21.17 has an exemption that the others do not:

Image

Let's add an option to MISRA23_21.17 to check the destination parameter for the functions in 'func_list' and see if it was used as an argument to 'sizeof'. If the destination was used as a parameter to sizeof, we assume the text in the exemption was performed.

Metadata

Metadata

No fields configured for Feature Request.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions