mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
simplify the where clause of rb/kernel-open
This commit is contained in:
@@ -71,7 +71,7 @@ from
|
||||
where
|
||||
config.hasFlowPath(source, sink) and
|
||||
sourceNode = source.getNode() and
|
||||
call.asExpr().getExpr().(MethodCall).getArgument(0) = sink.getNode().asExpr().getExpr()
|
||||
call.getArgument(0) = sink.getNode()
|
||||
select sink.getNode(), source, sink,
|
||||
"This call to " + call.(Replacement).getFrom() + " depends on a . Replace it with " +
|
||||
call.(Replacement).getTo() + ".", source.getNode(), "user-provided value"
|
||||
|
||||
Reference in New Issue
Block a user