...
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  | MediumNo  | 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  | Avoid slicing function arguments / return value  | PRQA QA-C++ | |||||||||||
| Include Page | PRQA QA-C++_V | PRQA QA-C++_V | Do not slice derived objects  | ||||||||||||
| Polyspace Bug Finder | 
  | CERT C++: OOP51-CPP | Checks for object slicing (rule partially covered) | ||||||||||||
| PVS-Studio | 
  | V1054 | 3072
Related Vulnerabilities
Search for other vulnerabilities resulting from the violation of this rule on the CERT website.
...