mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Dead store of field: count passing to a vararg function as escaping
This commit is contained in:
@@ -36,7 +36,7 @@ predicate escapes(DataFlow::Node nd) {
|
||||
exists(SendStmt s | nd.asExpr() = s.getValue())
|
||||
or
|
||||
// if `nd` is passed to a function, then it escapes
|
||||
nd instanceof DataFlow::ArgumentNode
|
||||
nd = any(DataFlow::CallNode c).getASyntacticArgument()
|
||||
or
|
||||
// if `nd` has its address taken, then it escapes
|
||||
exists(AddressExpr ae | nd.asExpr() = ae.getOperand())
|
||||
|
||||
Reference in New Issue
Block a user