mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
JS: Remove mention of TrackedNode in docs
This commit is contained in:
@@ -11,11 +11,8 @@ class PasswordTracker extends DataFlow::Configuration {
|
||||
override predicate isSink(DataFlow::Node nd) { this.passwordVarAssign(_, nd) }
|
||||
|
||||
predicate passwordVarAssign(Variable v, DataFlow::Node nd) {
|
||||
exists(SsaExplicitDefinition def |
|
||||
nd = DataFlow::ssaDefinitionNode(def) and
|
||||
def.getSourceVariable() = v and
|
||||
v.getName().toLowerCase() = "password"
|
||||
)
|
||||
v.getAnAssignedExpr() = nd.asExpr() and
|
||||
v.getName().toLowerCase() = "password"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ test_query4
|
||||
| tst.js:29:1:29:5 | 1 + 2 | This expression should be bracketed to clarify precedence rules. |
|
||||
test_query19
|
||||
test_query17
|
||||
| tst.js:38:18:38:23 | "blah" | Password variable password is assigned a constant string. |
|
||||
test_query18
|
||||
| m.js:1:1:3:0 | <toplevel> | 0 |
|
||||
test_query8
|
||||
@@ -18,6 +19,7 @@ test_query11
|
||||
| tst.js:31:12:31:12 | x | Dead store of local variable. |
|
||||
| tst.js:31:15:31:15 | y | Dead store of local variable. |
|
||||
| tst.js:31:18:31:18 | x | Dead store of local variable. |
|
||||
| tst.js:38:7:38:23 | password = "blah" | Dead store of local variable. |
|
||||
test_query12
|
||||
test_query20
|
||||
test_query3
|
||||
|
||||
@@ -32,4 +32,8 @@ function l(x, y, x) {
|
||||
for (i=0;i<10;++i);
|
||||
}
|
||||
|
||||
var j, j;
|
||||
var j, j;
|
||||
|
||||
function foo() {
|
||||
var password = "blah";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user