mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
Update go/ql/lib/semmle/go/frameworks/AwsLambda.qll
Co-authored-by: Chris Smowton <smowton@github.com>
This commit is contained in:
@@ -27,9 +27,9 @@ private class HandlerFunction extends FuncDef {
|
||||
or
|
||||
this = any(Method m | m.implements(awsLambdaPkg(), "Handler", "Invoke")).getFuncDecl()
|
||||
or
|
||||
exists(ConversionExpr ce |
|
||||
ce.getTypeExpr().getType() instanceof HandlerImpl and
|
||||
this = ce.getOperand().(FunctionName).getTarget().getFuncDecl()
|
||||
exists(DataFlow::TypeCastNode typeCast |
|
||||
typeCast.getResultType() instanceof HandlerImpl and
|
||||
this.(FuncDecl).getFunction().getARead() = typeCast.getOperand()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user