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 0149fb6 commit 05d46a6Copy full SHA for 05d46a6
cpp/ql/src/Likely Bugs/Memory Management/AllocaInLoop.ql
@@ -209,6 +209,7 @@ class LoopWithAlloca extends Stmt {
209
DataFlow::localFlow(result, DataFlow::exprNode(va)) and
210
// Phi nodes will be preceded by nodes that represent actual definitions
211
not result instanceof DataFlow::SsaPhiNode and
212
+ not result instanceof DataFlow::SsaPhiInputNode and
213
// A source is outside the loop if it's not inside the loop
214
not exists(Expr e | e = getExpr(result) | this = getAnEnclosingLoopOfExpr(e))
215
)
0 commit comments