...
When strings live on the heap, this rule is a specific instance of MEM35-C. Allocate sufficient memory for an object. Because strings are represented as arrays of characters, this rule is related to both ARR30-C. Do not form or use out-of-bounds pointers or array subscripts and ARR38-C. Guarantee that library functions do not form invalid pointers.
...
Tool | Version | Checker | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
CodeSonar |
| LANG.MEM.BO | Buffer Overrunoverrun | ||||||
|
| Can detect violations of the rule. However, it is unable to handle cases involving | |||||||
Coverity | 6.5 | STRING_OVERFLOW Fully Implemented Fully implemented | Fully implemented | ||||||
5.0 |
|
| |||||||
| NNTS.TAINTED |
| |||||||
|
|
| |||||||
|
|
| |||||||
PRQA QA-C |
| warncall for 'gets' | Partially implemented |
...
...