mirror of
https://github.com/github/codeql.git
synced 2026-01-29 14:23:03 +01:00
Model Apply methods correctly
They were accidentally modeled as functions
This commit is contained in:
@@ -45,12 +45,12 @@ private module EvanphxJsonPatch {
|
||||
}
|
||||
}
|
||||
|
||||
private class Apply extends TaintTracking::FunctionModel {
|
||||
private class Apply extends TaintTracking::FunctionModel, Method {
|
||||
Apply() {
|
||||
exists(string fn |
|
||||
fn in ["Apply", "ApplyWithOptions", "ApplyIndent", "ApplyIndentWithOptions"]
|
||||
|
|
||||
this.hasQualifiedName(packagePath(), fn)
|
||||
this.hasQualifiedName(packagePath(), "Patch", fn)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user