...
Tool | Version | Checker | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
Clang |
| clang-analyzer-unix.Malloc | Checked by clang-tidy ; can detect some instances of this rule, but does not detect all. | ||||||
CodeSonar |
| ALLOC.FNH | Free Nonnon-Heap Variableheap variable | ||||||
Can detect some violations of this rule | |||||||||
| BAD_FREE | Identifies calls to | |||||||
| FNH.MIGHT | ||||||||
| 407 S, 483 S | Partially implemented |
...
Bibliography
[ISO/IEC 9899:2011] | Subclause J.2, "Undefined Behavior" |
[Seacord 2013b] | Chapter 4, "Dynamic Memory Management" |
...