CWE Rule 597
Description
The product uses the wrong operator when comparing a string, such as using "==" when the .equals() method should be used instead.
Polyspace Implementation
Polyspace checks for the issue Using pointer comparison to compare strings.
Examples
Check Information
| Category: Others |
PQL Name:
std.cwe_native.R597 |
Version History
Introduced in R2026a