mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
C++: Fix query formatting
This commit is contained in:
@@ -56,10 +56,10 @@ predicate isSinkImpl(DataFlow::Node sink, SensitiveBufferWrite w) {
|
||||
}
|
||||
|
||||
from
|
||||
SensitiveBufferWrite w, ToBufferFlow::PathNode sourceNode,
|
||||
ToBufferFlow::PathNode sinkNode, FlowSource source
|
||||
SensitiveBufferWrite w, ToBufferFlow::PathNode sourceNode, ToBufferFlow::PathNode sinkNode,
|
||||
FlowSource source
|
||||
where
|
||||
ToBufferFlow::hasFlowPath(sourceNode, sinkNode) and
|
||||
ToBufferFlow::hasFlowPath(sourceNode, sinkNode) and
|
||||
sourceNode.getNode() = source and
|
||||
isSinkImpl(sinkNode.getNode(), w)
|
||||
select w, sourceNode, sinkNode,
|
||||
|
||||
@@ -91,10 +91,8 @@ module HttpStringToUrlOpenConfig implements DataFlow::ConfigSig {
|
||||
|
||||
module HttpStringToUrlOpen = TaintTracking::Make<HttpStringToUrlOpenConfig>;
|
||||
|
||||
from
|
||||
HttpStringToUrlOpen::PathNode source, HttpStringToUrlOpen::PathNode sink,
|
||||
HttpStringLiteral str
|
||||
from HttpStringToUrlOpen::PathNode source, HttpStringToUrlOpen::PathNode sink, HttpStringLiteral str
|
||||
where
|
||||
HttpStringToUrlOpen::hasFlowPath(source, sink) and
|
||||
HttpStringToUrlOpen::hasFlowPath(source, sink) and
|
||||
str = source.getNode().asIndirectExpr()
|
||||
select str, source, sink, "This URL may be constructed with the HTTP protocol."
|
||||
|
||||
Reference in New Issue
Block a user