...
Attempting to modify an array or access it after its lifetime expires may result in erroneous program behavior.
Rule | Severity | Likelihood | Detectable | RepairableRemediation Cost | Priority | Level |
|---|---|---|---|---|---|---|
EXP35-C | Low | Probable | Yes | YesMedium | P4 P6 | L3 L2 |
Automated Detection
Tool | Version | Checker | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Astrée |
| temporary-object-modification | Partially checked | ||||||
| Axivion Bauhaus Suite |
| CertC-EXP35 | |||||||
| CodeSonar |
| LANG.CAST.ARRAY.TEMP | Array to Pointer Conversion on Temporary Object | ||||||
| Cppcheck Premium |
| premium-cert-exp35-c | |||||||
| Helix QAC |
| C0450, C0455, C0459, C0464, C0465 C++3807, C++3808 | Fully implemented | ||||||
| LDRA tool suite |
| 642 S, 42 D, 77 D | Enhanced Enforcement | ||||||
| Parasoft C/C++test |
| CERT_C-EXP35-a | Do not modify objects with temporary lifetime | ||||||
| CERT-C: Rule EXP35-C | Checks for accesses on objects with temporary lifetime (rule fully covered) | |||||||
| Splint |
| ||||||||
| RuleChecker |
| temporary-object-modification | Partially checked |
...