Skip to content

Commit 5391b13

Browse files
committed
C++: Make dataflow configuration modules private in qll files
1 parent 0f8a12f commit 5391b13

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cpp/ql/src/Likely Bugs/Memory Management/NtohlArrayNoBound.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ deprecated class NetworkToBufferSizeConfiguration extends DataFlow::Configuratio
147147
}
148148
}
149149

150-
module NetworkToBufferSizeConfiguration implements DataFlow::ConfigSig {
150+
private module NetworkToBufferSizeConfiguration implements DataFlow::ConfigSig {
151151
predicate isSource(DataFlow::Node node) { node.asExpr() instanceof NetworkFunctionCall }
152152

153153
predicate isSink(DataFlow::Node node) { node.asExpr() = any(BufferAccess ba).getAccessedLength() }

cpp/ql/src/Security/CWE/CWE-020/ExternalAPIsSpecific.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ deprecated class UntrustedDataToExternalApiConfig extends TaintTracking::Configu
6262
deprecated class UntrustedDataToExternalAPIConfig = UntrustedDataToExternalApiConfig;
6363

6464
/** A configuration for tracking flow from `RemoteFlowSource`s to `ExternalApiDataNode`s. */
65-
module UntrustedDataToExternalApiConfig implements DataFlow::ConfigSig {
65+
private module UntrustedDataToExternalApiConfig implements DataFlow::ConfigSig {
6666
predicate isSource(DataFlow::Node source) {
6767
exists(RemoteFlowSourceFunction remoteFlow |
6868
remoteFlow = source.asExpr().(Call).getTarget() and

cpp/ql/src/Security/CWE/CWE-020/ir/ExternalAPIsSpecific.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ deprecated class UntrustedDataToExternalApiConfig extends TaintTracking::Configu
5757
deprecated class UntrustedDataToExternalAPIConfig = UntrustedDataToExternalApiConfig;
5858

5959
/** A configuration for tracking flow from `RemoteFlowSource`s to `ExternalApiDataNode`s. */
60-
module UntrustedDataToExternalApiConfig implements DataFlow::ConfigSig {
60+
private module UntrustedDataToExternalApiConfig implements DataFlow::ConfigSig {
6161
predicate isSource(DataFlow::Node source) { source instanceof RemoteFlowSource }
6262

6363
predicate isSink(DataFlow::Node sink) { sink instanceof ExternalApiDataNode }

0 commit comments

Comments
 (0)