We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d7dbec commit d3a9a5eCopy full SHA for d3a9a5e
1 file changed
go/ql/lib/semmle/go/frameworks/AwsLambda.qll
@@ -18,11 +18,11 @@ private class LambdaInput extends UntrustedFlowSource::Range {
18
19
private class HandlerFunction extends FuncDef {
20
HandlerFunction() {
21
- exists(StartOrNewHandlerFunction f, Expr e |
22
- f.getACall().getArgument(f.getHandlerArgPos()).asExpr() = e
+ exists(StartOrNewHandlerFunction f, DataFlow::Node handlerArg |
+ f.getACall().getArgument(f.getHandlerArgPos()) = handlerArg
23
|
24
- this = e.(FunctionName).getTarget().getFuncDecl() or
25
- this = e.(FuncLit)
+ handlerArg = this.(FuncDecl).getFunction().getARead() or
+ handlerArg = DataFlow::exprNode(this.(FuncLit))
26
)
27
or
28
this = any(Method m | m.implements(awsLambdaPkg(), "Handler", "Invoke")).getFuncDecl()
0 commit comments