File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
go/ql/lib/semmle/go/frameworks Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ private class LambdaInput extends UntrustedFlowSource::Range {
18
18
19
19
private class HandlerFunction extends FuncDef {
20
20
HandlerFunction ( ) {
21
- exists ( StartOrNewHandlerFunction f , Expr e |
22
- f .getACall ( ) .getArgument ( f .getHandlerArgPos ( ) ) . asExpr ( ) = e
21
+ exists ( StartOrNewHandlerFunction f , DataFlow :: Node handlerArg |
22
+ f .getACall ( ) .getArgument ( f .getHandlerArgPos ( ) ) = handlerArg
23
23
|
24
- this = e . ( FunctionName ) . getTarget ( ) .getFuncDecl ( ) or
25
- this = e .( FuncLit )
24
+ handlerArg = this . ( FuncDecl ) . getFunction ( ) .getARead ( ) or
25
+ handlerArg = DataFlow :: exprNode ( this .( FuncLit ) )
26
26
)
27
27
or
28
28
this = any ( Method m | m .implements ( awsLambdaPkg ( ) , "Handler" , "Invoke" ) ) .getFuncDecl ( )
You can’t perform that action at this time.
0 commit comments