mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
Fix query12 and add test case
This commit is contained in:
@@ -4,7 +4,7 @@ query predicate test_query12(MethodCallExpr send) {
|
||||
exists(SimpleParameter res, DataFlow::Node resNode |
|
||||
res.getName() = "res" and
|
||||
resNode = DataFlow::parameterNode(res) and
|
||||
resNode.getASuccessor() = DataFlow::valueNode(send.getReceiver()) and
|
||||
resNode.getASuccessor+() = DataFlow::valueNode(send.getReceiver()) and
|
||||
send.getMethodName() = "send"
|
||||
|
|
||||
any()
|
||||
|
||||
@@ -21,6 +21,7 @@ test_query11
|
||||
| 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
|
||||
| tst.js:42:3:42:12 | res.send() |
|
||||
test_query20
|
||||
test_query3
|
||||
| tst.js:27:1:27:4 | <!-- | Do not use HTML comments. |
|
||||
|
||||
@@ -37,3 +37,7 @@ var j, j;
|
||||
function foo() {
|
||||
var password = "blah";
|
||||
}
|
||||
|
||||
function m(res) {
|
||||
res.send()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user