mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Never skip functionmodel inputs and outputs in path summaries
This commit is contained in:
@@ -232,7 +232,11 @@ class CastNode extends ExprNode {
|
||||
* Holds if `n` should never be skipped over in the `PathGraph` and in path
|
||||
* explanations.
|
||||
*/
|
||||
predicate neverSkipInPathGraph(Node n) { none() }
|
||||
predicate neverSkipInPathGraph(Node n) {
|
||||
exists(DataFlow::FunctionModel fm | fm.getAnInputNode(_) = n or fm.getAnOutputNode(_) = n)
|
||||
or
|
||||
exists(TaintTracking::FunctionModel fm | fm.getAnInputNode(_) = n or fm.getAnOutputNode(_) = n)
|
||||
}
|
||||
|
||||
class DataFlowExpr = Expr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user