From 98d2c6dcad0ac6d16c6f525bfd6998af4f781326 Mon Sep 17 00:00:00 2001 From: eternalsakura Date: Fri, 18 Dec 2020 16:57:30 +0800 Subject: [PATCH] fix stripType() cannot be resolved for type Locatable bug in bindings.qll --- CodeQL_Queries/cpp/Chrome/bindings.qll | 6 +++--- CodeQL_Queries/cpp/Chrome/qlpack.yml | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 CodeQL_Queries/cpp/Chrome/qlpack.yml diff --git a/CodeQL_Queries/cpp/Chrome/bindings.qll b/CodeQL_Queries/cpp/Chrome/bindings.qll index 695ab27..796ce7e 100644 --- a/CodeQL_Queries/cpp/Chrome/bindings.qll +++ b/CodeQL_Queries/cpp/Chrome/bindings.qll @@ -11,7 +11,7 @@ class StrongBinding extends ClassTemplateInstantiation { } Type getBindingType() { - result = this.getTemplateArgument(0).stripType() + result = this.getTemplateArgument(0).(Type).stripType() } } @@ -21,7 +21,7 @@ class Binding extends ClassTemplateInstantiation { } Type getBindingType() { - result = this.getTemplateArgument(0).stripType() + result = this.getTemplateArgument(0).(Type).stripType() } } @@ -32,7 +32,7 @@ class MojoReceiver extends ClassTemplateInstantiation { } Type getBindingType() { - result = this.getTemplateArgument(0).stripType() + result = this.getTemplateArgument(0).(Type).stripType() } } diff --git a/CodeQL_Queries/cpp/Chrome/qlpack.yml b/CodeQL_Queries/cpp/Chrome/qlpack.yml new file mode 100644 index 0000000..2c2b5a3 --- /dev/null +++ b/CodeQL_Queries/cpp/Chrome/qlpack.yml @@ -0,0 +1,3 @@ +name: chrome_ql +version: 0.0.0 +libraryPathDependencies: codeql-cpp