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.
2 parents 22f6b02 + e536cec commit 73ee740Copy full SHA for 73ee740
cpp/ql/src/Likely Bugs/Memory Management/UninitializedLocal.ql
@@ -41,7 +41,7 @@ DeclStmt declWithNoInit(LocalVariable v) {
41
result.getADeclaration() = v and
42
not exists(v.getInitializer()) and
43
/* The type of the variable is not stack-allocated. */
44
- not allocatedType(v.getType())
+ exists(Type t | t = v.getType() | not allocatedType(t))
45
}
46
47
class UninitialisedLocalReachability extends StackVariableReachability {
0 commit comments