File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
docs/codeql/codeql-language-guides Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ This query finds calls to formatting functions where the format string is not ha
145
145
import semmle.code.java.dataflow.DataFlow
146
146
import semmle.code.java.StringFormat
147
147
148
- from StringFormatMethod format, MethodAccess call, Expr formatString
148
+ from StringFormatMethod format, MethodCall call, Expr formatString
149
149
where
150
150
call.getMethod() = format and
151
151
call.getArgument(format.getFormatStringIndex()) = formatString and
@@ -313,7 +313,7 @@ Exercise 3
313
313
314
314
import java
315
315
316
- class GetenvSource extends MethodAccess {
316
+ class GetenvSource extends MethodCall {
317
317
GetenvSource() {
318
318
exists(Method m | m = this.getMethod() |
319
319
m.hasName("getenv") and
@@ -331,7 +331,7 @@ Exercise 4
331
331
332
332
class GetenvSource extends DataFlow::ExprNode {
333
333
GetenvSource() {
334
- exists(Method m | m = this.asExpr().(MethodAccess ).getMethod() |
334
+ exists(Method m | m = this.asExpr().(MethodCall ).getMethod() |
335
335
m.hasName("getenv") and
336
336
m.getDeclaringType() instanceof TypeSystem
337
337
)
You can’t perform that action at this time.
0 commit comments