mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
add taint-step to XML parsers
This commit is contained in:
@@ -145,3 +145,4 @@ typeInferenceMismatch
|
||||
| tst.js:2:13:2:20 | source() | tst.js:45:10:45:24 | x.map(x2 => x2) |
|
||||
| tst.js:2:13:2:20 | source() | tst.js:47:10:47:30 | Buffer. ... 'hex') |
|
||||
| tst.js:2:13:2:20 | source() | tst.js:48:10:48:22 | new Buffer(x) |
|
||||
| xml.js:5:18:5:25 | source() | xml.js:8:14:8:17 | text |
|
||||
|
||||
10
javascript/ql/test/library-tests/TaintTracking/xml.js
Normal file
10
javascript/ql/test/library-tests/TaintTracking/xml.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(function () {
|
||||
var Parser = require("node-expat").Parser
|
||||
var parser = new Parser();
|
||||
|
||||
parser.write(source());
|
||||
|
||||
parser.on("text", text => {
|
||||
sink(text); // NOT OK
|
||||
});
|
||||
})();
|
||||
Reference in New Issue
Block a user