Skip to content

Commit 1f915b0

Browse files
committed
C++: UseOfHttp
1 parent ee596cd commit 1f915b0

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

cpp/ql/src/Security/CWE/CWE-319/UseOfHttp.ql

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,13 @@ module HttpStringToUrlOpenConfig implements DataFlow::ConfigSig {
8888
)
8989
}
9090

91-
predicate observeDiffInformedIncrementalMode() {
92-
any() // TODO: Make sure that the location overrides match the query's select clause: Column 1 selects source.asIndirectExpr (/Users/d10c/src/semmle-code/ql/cpp/ql/src/Security/CWE/CWE-319/UseOfHttp.ql@98:8:98:10)
91+
predicate observeDiffInformedIncrementalMode() { any() }
92+
93+
Location getASelectedSourceLocation(DataFlow::Node source) {
94+
result = source.asIndirectExpr().getLocation()
9395
}
96+
97+
Location getASelectedSinkLocation(DataFlow::Node sink) { none() }
9498
}
9599

96100
module HttpStringToUrlOpen = TaintTracking::Global<HttpStringToUrlOpenConfig>;

0 commit comments

Comments
 (0)