Skip to content

Commit 8d6aa28

Browse files
atorralbasmowton
andcommitted
Update go/ql/lib/semmle/go/frameworks/AwsLambda.qll
Co-authored-by: Chris Smowton <[email protected]>
1 parent 9a0fb39 commit 8d6aa28

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

go/ql/lib/semmle/go/frameworks/AwsLambda.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ private class HandlerFunction extends FuncDef {
2727
or
2828
this = any(Method m | m.implements(awsLambdaPkg(), "Handler", "Invoke")).getFuncDecl()
2929
or
30-
exists(ConversionExpr ce |
31-
ce.getTypeExpr().getType() instanceof HandlerImpl and
32-
this = ce.getOperand().(FunctionName).getTarget().getFuncDecl()
30+
exists(DataFlow::TypeCastNode typeCast |
31+
typeCast.getResultType() instanceof HandlerImpl and
32+
this.(FuncDecl).getFunction().getARead() = typeCast.getOperand()
3333
)
3434
}
3535
}

0 commit comments

Comments
 (0)