mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
JS: Update TaintTracking test
This commit is contained in:
@@ -35,8 +35,8 @@ function test() {
|
||||
provideTaint2(x => sink(x)); // NOT OK
|
||||
|
||||
forwardTaint2(source(), x => sink(x)); // NOT OK
|
||||
forwardTaint2("safe", x => sink(x)); // OK
|
||||
|
||||
forwardTaint2("safe", x => sink(x)); // OK [INCONSISTENCY]
|
||||
|
||||
function helper1(x) {
|
||||
sink(x); // NOT OK
|
||||
return x;
|
||||
|
||||
Reference in New Issue
Block a user