We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 318e75c commit 1625191Copy full SHA for 1625191
cpp/ql/src/Security/CWE/CWE-704/WcharCharConversion.ql
@@ -39,7 +39,7 @@ class UnlikelyToBeAStringType extends Type {
39
exists(Type targ | getABaseType(this) = targ |
40
// NOTE: not using CharType isUnsigned, but rather look for any explicitly declared unsigned
41
// char types. Assuming these are used for buffers, not strings.
42
- targ.(CharType).getName().toLowerCase().matches(["unsigned%"]) or
+ targ.(CharType).getName().toLowerCase().matches("unsigned%") or
43
targ.getName().toLowerCase().matches(["uint8_t", "%byte%"])
44
)
45
}
0 commit comments