...
Slicing results in information loss, which could lead to abnormal program execution or denial-of-service attacks.
Rule | Severity | Likelihood | Detectable | RepairableRemediation Cost | Priority | Level |
|---|---|---|---|---|---|---|
OOP51-CPP | Low | Probable | No | NoMedium | P4 P2 | L3 |
Automated Detection
Tool | Version | Checker | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
| CodeSonar |
| LANG.CAST.OBJSLICE | Object Slicing | ||||||
| Helix QAC |
| C++3072 | |||||||
| Parasoft C/C++test |
| CERT_CPP-OOP51-a | Do not slice derived objects | ||||||
| Polyspace Bug Finder |
| CERT C++: OOP51-CPP | Checks for object slicing (rule partially covered) | ||||||
| PVS-Studio |
| V1054 |
...