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 31324fc commit c91f7f4Copy full SHA for c91f7f4
cpp/ql/src/Security/CWE/CWE-704/WcharCharConversion.ql
@@ -49,7 +49,7 @@ class UnlikelyToBeAStringType extends Type {
49
// see https://learn.microsoft.com/en-us/windows/win32/winprog/windows-data-types
50
class UnicodeMacroDependentWidthType extends Type {
51
UnicodeMacroDependentWidthType() {
52
- exists(Type targ |
+ exists(Type targ | getABaseType(this) = targ |
53
targ.getName() in [
54
"LPCTSTR",
55
"LPTSTR",
@@ -58,8 +58,6 @@ class UnicodeMacroDependentWidthType extends Type {
58
"TBYTE",
59
"TCHAR"
60
]
61
- |
62
- getABaseType(this) = targ
63
)
64
}
65
0 commit comments