Merge pull request #254 from microsoft/implement-localExprTaint

PS: Actually implement `localExprTaint`
This commit is contained in:
Lindsay Simpkins
2025-07-07 08:23:11 -04:00
committed by GitHub

View File

@@ -15,6 +15,8 @@ predicate localTaint(DataFlow::Node source, DataFlow::Node sink) { localTaintSte
* local (intra-procedural) steps.
*/
pragma[inline]
predicate localExprTaint(CfgNodes::ExprCfgNode e1, CfgNodes::ExprCfgNode e2) { none() }
predicate localExprTaint(CfgNodes::ExprCfgNode e1, CfgNodes::ExprCfgNode e2) {
localTaintStep*(DataFlow::exprNode(e1), DataFlow::exprNode(e2))
}
predicate localTaintStep = localTaintStepCached/2;