mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
Mass-rename MethodAccess -> MethodCall
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import semmle.code.java.dataflow.TaintTracking
|
||||
|
||||
from StringBuilderVar sbv, MethodAccess append, Method method
|
||||
from StringBuilderVar sbv, MethodCall append, Method method
|
||||
where sbv.getAnAppend() = append and append.getEnclosingCallable() = method
|
||||
select method.getName(), sbv.getLocation().getStartLine() - method.getLocation().getStartLine(),
|
||||
sbv, append.getLocation().getStartLine() - method.getLocation().getStartLine(), append,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import semmle.code.java.dataflow.TaintTracking
|
||||
|
||||
from StringBuilderVar sbv, MethodAccess toString, Method method
|
||||
from StringBuilderVar sbv, MethodCall toString, Method method
|
||||
where sbv.getToStringCall() = toString and toString.getEnclosingCallable() = method
|
||||
select method.getName(), sbv.getLocation().getStartLine() - method.getLocation().getStartLine(),
|
||||
sbv, toString.getLocation().getStartLine() - method.getLocation().getStartLine(), toString
|
||||
|
||||
@@ -4,7 +4,7 @@ import semmle.code.java.security.SqlInjectionQuery
|
||||
import TestUtilities.InlineExpectationsTest
|
||||
|
||||
private class SourceMethodSource extends RemoteFlowSource {
|
||||
SourceMethodSource() { this.asExpr().(MethodAccess).getMethod().hasName("source") }
|
||||
SourceMethodSource() { this.asExpr().(MethodCall).getMethod().hasName("source") }
|
||||
|
||||
override string getSourceType() { result = "source" }
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ import semmle.code.java.security.LogInjectionQuery
|
||||
import TestUtilities.InlineFlowTest
|
||||
|
||||
private class TestSource extends RemoteFlowSource {
|
||||
TestSource() { this.asExpr().(MethodAccess).getMethod().hasName("source") }
|
||||
TestSource() { this.asExpr().(MethodCall).getMethod().hasName("source") }
|
||||
|
||||
override string getSourceType() { result = "test source" }
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ module InsecureJavaMailTest implements TestSig {
|
||||
|
||||
predicate hasActualResult(Location location, string element, string tag, string value) {
|
||||
tag = "hasInsecureJavaMail" and
|
||||
exists(MethodAccess ma |
|
||||
exists(MethodCall ma |
|
||||
ma.getLocation() = location and
|
||||
element = ma.toString() and
|
||||
value = ""
|
||||
|
||||
@@ -7,7 +7,7 @@ module CleartextStorageAndroidDatabaseTest implements TestSig {
|
||||
|
||||
predicate hasActualResult(Location location, string element, string tag, string value) {
|
||||
tag = "hasCleartextStorageAndroidDatabase" and
|
||||
exists(SensitiveSource data, LocalDatabaseOpenMethodAccess s, Expr input, Expr store |
|
||||
exists(SensitiveSource data, LocalDatabaseOpenMethodCall s, Expr input, Expr store |
|
||||
input = s.getAnInput() and
|
||||
store = s.getAStore() and
|
||||
data.flowsTo(input)
|
||||
|
||||
@@ -7,7 +7,7 @@ module CleartextStorageSharedPrefsTest implements TestSig {
|
||||
|
||||
predicate hasActualResult(Location location, string element, string tag, string value) {
|
||||
tag = "hasCleartextStorageSharedPrefs" and
|
||||
exists(SensitiveSource data, SharedPreferencesEditorMethodAccess s, Expr input, Expr store |
|
||||
exists(SensitiveSource data, SharedPreferencesEditorMethodCall s, Expr input, Expr store |
|
||||
input = s.getAnInput() and
|
||||
store = s.getAStore() and
|
||||
data.flowsTo(input)
|
||||
|
||||
@@ -7,7 +7,7 @@ module SpringCsrfProtectionTest implements TestSig {
|
||||
|
||||
predicate hasActualResult(Location location, string element, string tag, string value) {
|
||||
tag = "hasSpringCsrfProtectionDisabled" and
|
||||
exists(MethodAccess call | disablesSpringCsrfProtection(call) |
|
||||
exists(MethodCall call | disablesSpringCsrfProtection(call) |
|
||||
call.getLocation() = location and
|
||||
element = call.toString() and
|
||||
value = ""
|
||||
|
||||
@@ -3,7 +3,7 @@ import TestUtilities.InlineExpectationsTest
|
||||
import semmle.code.java.security.SensitiveResultReceiverQuery
|
||||
|
||||
class TestSource extends RemoteFlowSource {
|
||||
TestSource() { this.asExpr().(MethodAccess).getMethod().hasName("source") }
|
||||
TestSource() { this.asExpr().(MethodCall).getMethod().hasName("source") }
|
||||
|
||||
override string getSourceType() { result = "test" }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user