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?
This can be simplified:
exists(Method method, MethodAccess call |
method.getDeclaringType().hasQualifiedName( java.math , BigDecimal ) and
method.hasName([ add , subtract ]) and
call.getMethod() = method and
sink.asExpr() = call.getArgument(0)
)
documentation
Java
... more cleanly like:
exists(MethodAccess ma |
ma.getMethod().hasQualifiedName( java.text , Normalizer , normalize ) and
ma.getArgument(1).(FieldAccess).getField() instanceof ComposingUnicodeForm and
sink.asExpr() = ma.getArgument(0)
) and
documentation
Java
I had to make some modifications to your proposal above but this ended up working:
predicate isUnsafeUseUnconstrainedByIfCheck(DataFlow::Node sink, Expr unsafeUse) {
exists(Guard g, MethodAccess ...
documentation
Java
MethodAccess has been deprecated.
documentation
MethodAccess has been deprecated.
documentation
Other simple things to fix:
MethodAccess - MethodCall
DataFlow::FlowState - string (but as mentioned above this should be removed anyway)
Change the query id and description to reflect this being ...
documentation
Java
Not used anywhere else, can be private:
private predicate hasFieldNameEnv(MethodAccess ma, string fieldName, string envValue) {
documentation
Java
ready-for-doc-review
documentation
external-contribution
Java
... , somehow MethodCall had to be reverted back to MethodAccess to run.
As a result, I had to do some minor adjustment and push a new commit. I have added some comments in the code change to
explain why they ...
documentation
Java