File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
python/ql/test/experimental/meta Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -78,10 +78,13 @@ query predicate argumentToEnsureNotTaintedNotMarkedAsSpurious(
78
78
)
79
79
}
80
80
81
- query predicate untaintedArgumentToEnsureTaintedNotMarkedAsMissing ( Location location , string error ) {
81
+ query predicate untaintedArgumentToEnsureTaintedNotMarkedAsMissing (
82
+ Location location , string error , string element
83
+ ) {
82
84
error = "ERROR, you should add `# $ MISSING: tainted` annotation" and
83
85
exists ( DataFlow:: Node sink |
84
86
sink = shouldBeTainted ( ) and
87
+ element = prettyExp ( sink .asExpr ( ) ) and
85
88
not any ( TestTaintTrackingConfiguration config ) .hasFlow ( _, sink ) and
86
89
location = sink .getLocation ( ) and
87
90
not exists ( FalseNegativeExpectation missingResult |
Original file line number Diff line number Diff line change 1
1
argumentToEnsureNotTaintedNotMarkedAsSpurious
2
2
| taint_test.py:48:9:48:29 | taint_test.py:48 | ERROR, you should add `SPURIOUS:` to this annotation | should_not_be_tainted |
3
3
untaintedArgumentToEnsureTaintedNotMarkedAsMissing
4
- | taint_test.py:32:9:32:25 | taint_test.py:32 | ERROR, you should add `# $ MISSING: tainted` annotation |
5
- | taint_test.py:37:24:37:40 | taint_test.py:37 | ERROR, you should add `# $ MISSING: tainted` annotation |
4
+ | taint_test.py:32:9:32:25 | taint_test.py:32 | ERROR, you should add `# $ MISSING: tainted` annotation | should_be_tainted |
5
+ | taint_test.py:37:24:37:40 | taint_test.py:37 | ERROR, you should add `# $ MISSING: tainted` annotation | should_be_tainted |
6
6
failures
7
7
| taint_test.py:41:20:41:21 | ts | Fixed missing result:tainted= |
You can’t perform that action at this time.
0 commit comments