Skip to content

Commit 4079de1

Browse files
committed
C++: Fix FP by also excluding indirections of array expressions.
1 parent eec2592 commit 4079de1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/lib/semmle/code/cpp/security/flowafterfree/FlowAfterFree.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ module FlowFromFree<FlowFromFreeParamSig P> {
9595
e = any(StoreInstruction store).getDestinationAddress().getUnconvertedResultExpression()
9696
)
9797
or
98-
n.asExpr() instanceof ArrayExpr
98+
[n.asExpr(), n.asIndirectExpr()] instanceof ArrayExpr
9999
}
100100
}
101101

0 commit comments

Comments
 (0)