C++: Add barrier for array lookups in 'cpp/double-free' and 'cpp/use-after-free'.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-12-15 14:57:17 +00:00
parent 3977689808
commit 0543ed115e

View File

@@ -87,6 +87,8 @@ module FlowFromFree<isSinkSig/2 isASink, isExcludedSig/2 isExcluded> {
|
e = any(StoreInstruction store).getDestinationAddress().getUnconvertedResultExpression()
)
or
n.asExpr() instanceof ArrayExpr
}
}