File tree Expand file tree Collapse file tree
java/ql/lib/semmle/code/java/security Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,10 +51,10 @@ abstract class WeakRandomnessSink extends DataFlow::Node { }
5151private class CookieSink extends WeakRandomnessSink {
5252 CookieSink ( ) {
5353 this .getType ( ) instanceof TypeCookie and
54- exists ( MethodAccess ma |
55- ma .getMethod ( ) .hasQualifiedName ( "javax.servlet.http" , "HttpServletResponse" , "addCookie" )
54+ exists ( MethodCall mc |
55+ mc .getMethod ( ) .hasQualifiedName ( "javax.servlet.http" , "HttpServletResponse" , "addCookie" )
5656 |
57- ma .getArgument ( 0 ) = this .asExpr ( )
57+ mc .getArgument ( 0 ) = this .asExpr ( )
5858 )
5959 }
6060}
@@ -71,7 +71,7 @@ private class CredentialsSink extends WeakRandomnessSink instanceof CredentialsS
7171private predicate covertsBytesToString ( DataFlow:: Node bytes , DataFlow:: Node str ) {
7272 bytes .getType ( ) .( Array ) .getElementType ( ) .( PrimitiveType ) .hasName ( "byte" ) and
7373 str .getType ( ) instanceof TypeString and
74- exists ( MethodAccess ma | ma = str .asExpr ( ) | bytes .asExpr ( ) = ma .getAnArgument ( ) )
74+ exists ( MethodCall mc | mc = str .asExpr ( ) | bytes .asExpr ( ) = mc .getAnArgument ( ) )
7575}
7676
7777/**
You can’t perform that action at this time.
0 commit comments