mirror of
https://github.com/github/codeql.git
synced 2026-01-29 22:32:58 +01:00
add CSV models of append
This commit is contained in:
committed by
Owen Mansel-Chan
parent
070e383516
commit
a632a58221
@@ -4,6 +4,16 @@ import go
|
||||
private import DataFlowNodes
|
||||
private import DataFlowPrivate
|
||||
private import DataFlowUtil
|
||||
private import semmle.go.dataflow.ExternalFlow
|
||||
|
||||
private class BuiltinModel extends SummaryModelCsv {
|
||||
override predicate row(string row) {
|
||||
row = [
|
||||
";;false;append;;;ArrayElement of Argument[0];ArrayElement of ReturnValue;value",
|
||||
";;false;append;;;Argument[1];ArrayElement of ReturnValue;value"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Holds if the step from `node1` to `node2` stores a value in a slice or array.
|
||||
|
||||
Reference in New Issue
Block a user