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 46fbb2a commit e536cecCopy full SHA for e536cec
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