We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4b78a1 commit 57a1becCopy full SHA for 57a1bec
swift/ql/lib/codeql/swift/security/CleartextLoggingExtensions.qll
@@ -97,7 +97,7 @@ private class CleartextLoggingFieldAdditionalFlowStep extends CleartextLoggingAd
97
* A function that appears to be an imported C `printf` variant.
98
* TODO: merge code with similar cases from the format string PR.
99
*/
100
-class PrintfFormat extends FreeFunction {
+private class PrintfFormat extends FreeFunction {
101
int formatParamIndex;
102
string modeChars;
103
@@ -106,6 +106,9 @@ class PrintfFormat extends FreeFunction {
106
this.getParam(formatParamIndex).getName() = "format"
107
}
108
109
+ /**
110
+ * Gets the index of the format parameter.
111
+ */
112
int getFormatParamIndex() { result = formatParamIndex }
113
114
/**
0 commit comments