Skip to content

Commit ea9640a

Browse files
committed
C++: Autoformat.
1 parent 5ef71e6 commit ea9640a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ class HttpStringToUrlOpenConfig extends TaintTracking::Configuration {
6262
// accessed as a URL, for example using it in a network access. Some
6363
// URLs are only ever displayed or used for data processing.
6464
exists(FunctionCall fc |
65-
fc.getTarget().hasGlobalOrStdName(["system", "gethostbyname", "gethostbyname2", "gethostbyname_r", "getaddrinfo", "X509_load_http", "X509_CRL_load_http"]) and
65+
fc.getTarget()
66+
.hasGlobalOrStdName([
67+
"system", "gethostbyname", "gethostbyname2", "gethostbyname_r", "getaddrinfo",
68+
"X509_load_http", "X509_CRL_load_http"
69+
]) and
6670
sink.asExpr() = fc.getArgument(0)
6771
or
6872
fc.getTarget().hasGlobalOrStdName(["send", "URLDownloadToFile", "URLDownloadToCacheFile"]) and

0 commit comments

Comments
 (0)