mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
Convert EchoContextBinder to MaD
This commit is contained in:
@@ -10,6 +10,7 @@ extensions:
|
|||||||
pack: codeql/go-all
|
pack: codeql/go-all
|
||||||
extensible: sourceModel
|
extensible: sourceModel
|
||||||
data:
|
data:
|
||||||
|
- ["github.com/labstack/echo", "Context", True, "Bind", "", "", "Argument[0]", "remote", "manual"]
|
||||||
- ["github.com/labstack/echo", "Context", True, "Param", "", "", "ReturnValue[0]", "remote", "manual"]
|
- ["github.com/labstack/echo", "Context", True, "Param", "", "", "ReturnValue[0]", "remote", "manual"]
|
||||||
- ["github.com/labstack/echo", "Context", True, "ParamValues", "", "", "ReturnValue[0]", "remote", "manual"]
|
- ["github.com/labstack/echo", "Context", True, "ParamValues", "", "", "ReturnValue[0]", "remote", "manual"]
|
||||||
- ["github.com/labstack/echo", "Context", True, "QueryParam", "", "", "ReturnValue[0]", "remote", "manual"]
|
- ["github.com/labstack/echo", "Context", True, "QueryParam", "", "", "ReturnValue[0]", "remote", "manual"]
|
||||||
|
|||||||
@@ -22,19 +22,6 @@ private module Echo {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* A call to a method on `Context` struct that unmarshals data into a target.
|
|
||||||
*/
|
|
||||||
private class EchoContextBinder extends RemoteFlowSource::Range {
|
|
||||||
EchoContextBinder() {
|
|
||||||
exists(DataFlow::MethodCallNode call |
|
|
||||||
call.getTarget().hasQualifiedName(packagePath(), "Context", "Bind")
|
|
||||||
|
|
|
||||||
this = FunctionOutput::parameter(0).getExitNode(call)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* `echo.Context` methods which set the content-type to `text/html` and write a result in one operation.
|
* `echo.Context` methods which set the content-type to `text/html` and write a result in one operation.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user