...
Mismatched usage of new and delete could lead to a denial-of-service attack.
Rule | Severity | Likelihood | Detectable | RepairableRemediation Cost | Priority | Level |
|---|---|---|---|---|---|---|
DCL54-CPP | Low | Probable | Yes | NoLow | P6P4 | L2L3 |
Automated Detection
Tool | Version | Checker | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Astrée |
| new-delete-pairwise | Partially checked | ||||||
| Axivion Bauhaus Suite |
| CertC++-DCL54 | |||||||
| Clang |
| misc-new-delete-overloads | Checked with clang-tidy. | ||||||
| Helix QAC |
| C++2160 | |||||||
| Klocwork |
| CERT.DCL.SAME_SCOPE_ALLOC_DEALLOC | |||||||
| Parasoft C/C++test |
| CERT_CPP-DCL54-a | Always provide new and delete together | ||||||
| Polyspace Bug Finder |
| CERT C++: DCL54-CPP | Checks for mismatch between overloaded operator new and operator delete (rule fully covered) | ||||||
| RuleChecker |
| new-delete-pairwise | Partially checked | ||||||
| SonarQube C/C++ Plugin |
| S1265 |
...