Adjust a couple of query tests to work with latest points-to.

This commit is contained in:
Mark Shannon
2019-04-29 14:28:51 +01:00
parent 6a5ec51623
commit 65a30ab392
2 changed files with 3 additions and 3 deletions

View File

@@ -5,5 +5,6 @@ import python
import semmle.python.security.SensitiveData
import semmle.python.security.Crypto
from TaintedNode n
select n.getTrackedValue(), n.getLocation(), n.getNode().getNode(), n.getContext()
from TaintedNode n, AstNode src
where src = n.getNode().getNode() and src.getLocation().getFile().getName().matches("%test%")
select n.getTrackedValue(), n.getLocation(), src, n.getContext()