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
|
from
|
||||||
SensitiveBufferWrite w, ToBufferFlow::PathNode sourceNode,
|
SensitiveBufferWrite w, ToBufferFlow::PathNode sourceNode, ToBufferFlow::PathNode sinkNode,
|
||||||
ToBufferFlow::PathNode sinkNode, FlowSource source
|
FlowSource source
|
||||||
where
|
where
|
||||||
ToBufferFlow::hasFlowPath(sourceNode, sinkNode) and
|
ToBufferFlow::hasFlowPath(sourceNode, sinkNode) and
|
||||||
sourceNode.getNode() = source and
|
sourceNode.getNode() = source and
|
||||||
isSinkImpl(sinkNode.getNode(), w)
|
isSinkImpl(sinkNode.getNode(), w)
|
||||||
select w, sourceNode, sinkNode,
|
select w, sourceNode, sinkNode,
|
||||||
|
|||||||
@@ -91,10 +91,8 @@ module HttpStringToUrlOpenConfig implements DataFlow::ConfigSig {
|
|||||||
|
|
||||||
module HttpStringToUrlOpen = TaintTracking::Make<HttpStringToUrlOpenConfig>;
|
module HttpStringToUrlOpen = TaintTracking::Make<HttpStringToUrlOpenConfig>;
|
||||||
|
|
||||||
from
|
from HttpStringToUrlOpen::PathNode source, HttpStringToUrlOpen::PathNode sink, HttpStringLiteral str
|
||||||
HttpStringToUrlOpen::PathNode source, HttpStringToUrlOpen::PathNode sink,
|
|
||||||
HttpStringLiteral str
|
|
||||||
where
|
where
|
||||||
HttpStringToUrlOpen::hasFlowPath(source, sink) and
|
HttpStringToUrlOpen::hasFlowPath(source, sink) and
|
||||||
str = source.getNode().asIndirectExpr()
|
str = source.getNode().asIndirectExpr()
|
||||||
select str, source, sink, "This URL may be constructed with the HTTP protocol."
|
select str, source, sink, "This URL may be constructed with the HTTP protocol."
|
||||||
|
|||||||
Reference in New Issue
Block a user