pullrequests Search Results · repo:github/codeql path:docs/codeql "MethodAccess" is:public is:public
Filter by
90 results
ingithub/codeql (press backspace or delete to remove)The path qualifier is not supported when searching pull requests. Try searching for code instead?
... csv.
override predicate isSink(DataFlow::Node sink) {
exists(MethodAccess m |
sink.asExpr() = m.getQualifier() and m.getMethod() instanceof URLOpenStreamMethod
)
or
sinkNode(sink, url-open-stream )
}
documentation
Java
... () {
exists(MethodAccess ma, Method m |
ma.getMethod() = m and
m.getDeclaringType().hasQualifiedName( android.content.pm , PackageManager ) and
m.hasName( getInstalledPackages ) and
this.asExpr() = ma
)
documentation
Java
exists(MethodAccess ma | ma instanceof BarrierGuard |
documentation
Java
Make this class also extend MethodAccess. You can then remove the cast from checks.
documentation
Java
exists(MethodAccess ma, Method m, Expr taintFrom | ma.getMethod() = m and tainted = this.asExpr() |
(fairly arbitrary style preference in this repo: use explicit this)
Rename var to be slightly clearer about its role
documentation
Java
Let s factor all these very similar rest-template classes -- if you make an abstract class SpringRestTemplate that has
an abstract getUrlArgument(MethodAccess ma), which it looks like is always ...
documentation
Java
class JsonIoUseMapsSetter extends MethodAccess {
documentation
Java
MethodAccess getAnOkAccess() {
documentation
Java
... class SqlInjectionSink extends QueryInjectionSink {
SqlInjectionSink() {
exists(MethodAccess ma, Method m, int index |
ma.getMethod() = m and
if index = -1
then this.asExpr ...
Java
...
exists(StringLiteral s | s.getRepresentedString() = getAFlagName() | source.asExpr() = s)
or
exists(MethodAccess ma | ma.getMethod().getName() = getAFlagName() |
source.asExpr() = ma and ...
documentation
Java