We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 596cfcf commit 09f73d8Copy full SHA for 09f73d8
javascript/ql/test/library-tests/TaintTracking/string-immutable-operations.js
@@ -0,0 +1,12 @@
1
+function test() {
2
+ let x = source();
3
+ sink(x.toWellFormed()); // NOT OK -- Currently not tainted, but should be
4
+
5
+ const wellFormedX = x.toWellFormed();
6
+ sink(wellFormedX); // NOT OK -- Currently not tainted, but should be
7
8
+ const concatWellFormedX = "/" + wellFormedX + "!";
9
+ sink(concatWellFormedX); // NOT OK -- Currently not tainted, but should be
10
11
+ sink(source().toWellFormed()); // NOT OK -- Currently not tainted, but should be
12
+}
0 commit comments