Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 65a30ab

Browse files
committed
Adjust a couple of query tests to work with latest points-to.
1 parent 6a5ec51 commit 65a30ab

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
| expressions_test.py:51:4:51:11 | Compare | The result of this comparison with 'is' may differ between implementations of Python. |
2-
| expressions_test.py:56:4:56:16 | Compare | The result of this comparison with 'is' may differ between implementations of Python. |

python/ql/test/query-tests/Security/CWE-327/TestNode.ql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ import python
55
import semmle.python.security.SensitiveData
66
import semmle.python.security.Crypto
77

8-
from TaintedNode n
9-
select n.getTrackedValue(), n.getLocation(), n.getNode().getNode(), n.getContext()
8+
from TaintedNode n, AstNode src
9+
where src = n.getNode().getNode() and src.getLocation().getFile().getName().matches("%test%")
10+
select n.getTrackedValue(), n.getLocation(), src, n.getContext()

0 commit comments

Comments
 (0)