Files
codeql/javascript/ql/test/library-tests/CustomLoadStoreSteps/tst.js
2020-01-15 14:23:17 +01:00

10 lines
239 B
JavaScript

// When the source code states that "foo" is being read, "bar" is additionally being read.
(function () {
var source = "source";
var tainted = { bar: source };
function readTaint(x) {
return x.foo;
}
sink(readTaint(tainted));
})();