Skip to content

Commit f9195d1

Browse files
committed
go: make sure the source/sink have the same type as the edges relation
1 parent c9fcef2 commit f9195d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

go/ql/src/experimental/CWE-400/DatabaseCallInLoop.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,5 @@ query predicate edges(CallGraphNode pred, CallGraphNode succ) {
6666

6767
from LoopStmt loop, DatabaseAccess dbAccess
6868
where edges*(loop, dbAccess.asExpr())
69-
select dbAccess, loop, dbAccess, "This calls " + dbAccess.toString() + " in a $@.", loop, "loop"
69+
select dbAccess, loop, dbAccess.asExpr(), "This calls " + dbAccess.toString() + " in a $@.", loop,
70+
"loop"

0 commit comments

Comments
 (0)