Skip to content

Commit c281219

Browse files
committed
CPP: Further speedup.
1 parent 08293d0 commit c281219

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

cpp/ql/src/Likely Bugs/Protocols/boostorg/TlsSettingsMisconfiguration.ql

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ class ExistsAnyFlowConfig extends DataFlow::Configuration {
1919
)
2020
}
2121

22-
override predicate isSink(DataFlow::Node sink) { any() }
22+
override predicate isSink(DataFlow::Node sink) {
23+
exists(BoostorgAsio::SslSetOptionsFunction f, FunctionCall fcSetOptions |
24+
f.getACallToThisFunction() = fcSetOptions and
25+
fcSetOptions.getQualifier() = sink.asExpr()
26+
)
27+
}
2328
}
2429

2530
bindingset[flag]

0 commit comments

Comments
 (0)