Skip to content

Commit 0543ed1

Browse files
committed
C++: Add barrier for array lookups in 'cpp/double-free' and 'cpp/use-after-free'.
1 parent 3977689 commit 0543ed1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpp/ql/src/Critical/FlowAfterFree.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ module FlowFromFree<isSinkSig/2 isASink, isExcludedSig/2 isExcluded> {
8787
|
8888
e = any(StoreInstruction store).getDestinationAddress().getUnconvertedResultExpression()
8989
)
90+
or
91+
n.asExpr() instanceof ArrayExpr
9092
}
9193
}
9294

0 commit comments

Comments
 (0)