...
Altering the standard namespace can cause undefined behavior in the C++ standard library.
Rule | Severity | Likelihood | Detectable | RepairableRemediation Cost | Priority | Level |
|---|---|---|---|---|---|---|
DCL58-CPP | High | Unlikely | Yes | NoMedium | P6 | L2 |
Automated Detection
Tool | Version | Checker | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Axivion Bauhaus Suite |
| CertC++-DCL58 | |||||||
| CodeSonar |
| LANG.STRUCT.DECL.SNM | Modification of Standard Namespaces | ||||||
| Helix QAC |
| C++3180, C++3181, C++3182 | |||||||
| Klocwork |
| CERT.DCL.STD_NS_MODIFIED | |||||||
| Parasoft C/C++test |
| CERT_CPP-DCL58-a | Do not modify the standard namespaces 'std' and 'posix' | ||||||
| Polyspace Bug Finder |
| CERT C++: DCL58-CPP | Checks for modification of standard namespaces (rule fully covered) | ||||||
| PVS-Studio |
| V1061 | |||||||
| SonarQube C/C++ Plugin |
| S3470 |
...