CWE Rule 495
Description
Rule Description
The product has a method that is declared public, but returns a reference to a private data structure, which could then be modified in unexpected ways.
Polyspace Implementation
The rule checker checks for Return of non-const pointer or reference to private or protected data owned by the class.
Examples
Check Information
Category: Others |
Version History
Introduced in R2023a