Skip to content

Commit 1c298f0

Browse files
committed
Added test case for Array.prototype.reverse, which is currently not flagged as a potential sink.
1 parent f1c6dc1 commit 1c298f0

File tree

1 file changed

+2
-0
lines changed
  • javascript/ql/test/library-tests/TaintTracking

1 file changed

+2
-0
lines changed

javascript/ql/test/library-tests/TaintTracking/tst.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,6 @@ function test() {
5757
}
5858

5959
tagged`foo ${"safe"} bar ${x} baz`;
60+
61+
sink(x.reverse()); // NOT OK -- Should be caught but isn't
6062
}

0 commit comments

Comments
 (0)