mirror of
https://github.com/github/codeql.git
synced 2026-01-19 17:34:47 +01:00
10 lines
239 B
JavaScript
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));
|
|
})(); |