From 0a48fef0e701dbadbf50ef408a7976837b107aa5 Mon Sep 17 00:00:00 2001 From: Owen Mansel-Chan Date: Fri, 5 Mar 2021 15:55:44 +0000 Subject: [PATCH] Model Apply methods correctly They were accidentally modeled as functions --- ql/src/semmle/go/frameworks/EvanphxJsonPatch.qll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ql/src/semmle/go/frameworks/EvanphxJsonPatch.qll b/ql/src/semmle/go/frameworks/EvanphxJsonPatch.qll index b97561fd80e..7904fea7a03 100644 --- a/ql/src/semmle/go/frameworks/EvanphxJsonPatch.qll +++ b/ql/src/semmle/go/frameworks/EvanphxJsonPatch.qll @@ -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) ) }