Skip to content

Commit 2d33f86

Browse files
committed
Initial Push
- Sample test (test not compiling) - Stubs not generating
1 parent 04c2ce9 commit 2d33f86

File tree

4 files changed

+161
-133
lines changed

4 files changed

+161
-133
lines changed

go/ql/lib/semmle/go/frameworks/XPath.qll

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,21 @@ module XPath {
142142
}
143143
}
144144

145+
/**
146+
* An XPath expression string used in an API function of the
147+
* [lestrrat-go/libxml2](https://github.com/lestrrat-go/libxml2) package.
148+
*/
149+
private class LestratGoLibxml2XPathExpressionString extends Range {
150+
LestratGoLibxml2XPathExpressionString() {
151+
exists(Function f, string name | name.matches("Parse%") |
152+
f.hasQualifiedName("github.com/lestrrat-go/libxml2/parser.Parser", name) and
153+
//f.hasQualifiedName(package("github.com/lestrrat-go/libxml2/parser.Parser", ""), name) and
154+
this = f.getACall().getArgument(0)
155+
)
156+
}
157+
}
158+
159+
145160
/**
146161
* An XPath expression string used in an API function of the
147162
* [xpathparser](https://github.com/santhosh-tekuri/xpathparser) package.

0 commit comments

Comments
 (0)