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 {
1818
1919private class HandlerFunction extends FuncDef {
2020 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
2323 |
24- this = e . ( FunctionName ) . getTarget ( ) .getFuncDecl ( ) or
25- this = e .( FuncLit )
24+ handlerArg = this . ( FuncDecl ) . getFunction ( ) .getARead ( ) or
25+ handlerArg = DataFlow :: exprNode ( this .( FuncLit ) )
2626 )
2727 or
2828 this = any ( Method m | m .implements ( awsLambdaPkg ( ) , "Handler" , "Invoke" ) ) .getFuncDecl ( )
You can’t perform that action at this time.
0 commit comments