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 c253bdd commit 5dcf0adCopy full SHA for 5dcf0ad
ruby/ql/lib/codeql/ruby/security/TaintedFormatStringSpecific.qll
@@ -7,6 +7,7 @@ import codeql.ruby.DataFlow
7
import codeql.ruby.dataflow.RemoteFlowSources
8
import codeql.ruby.ApiGraphs
9
import codeql.ruby.TaintTracking
10
+private import codeql.ruby.frameworks.Files::IO
11
12
/**
13
* A call to `printf` or `sprintf`.
@@ -57,5 +58,5 @@ class KernelSprintfCall extends PrintfStyleCall {
57
58
* A call to `IO#printf`.
59
*/
60
class IOPrintfCall extends PrintfStyleCall {
- IOPrintfCall() { this = API::getTopLevelMember("IO").getInstance().getAMethodCall("printf") }
61
+ IOPrintfCall() { this.getReceiver() instanceof IOInstance and this.getMethodName() = "printf" }
62
}
0 commit comments