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 c73dc8a commit c253bddCopy full SHA for c253bdd
ruby/ql/lib/codeql/ruby/security/TaintedFormatStringSpecific.qll
@@ -21,7 +21,7 @@ abstract class PrintfStyleCall extends DataFlow::CallNode {
21
/**
22
* Gets then `n`th formatted argument of this call.
23
*/
24
- DataFlow::Node getFormatArgument(int n) { n > 0 and result = this.getArgument(n) }
+ DataFlow::Node getFormatArgument(int n) { n >= 0 and result = this.getArgument(n + 1) }
25
}
26
27
0 commit comments