Skip to content

Commit db06c08

Browse files
committed
Rename UntrustedSource to RemoteSource
Including renaming some files (in the experimental folder).
1 parent f39301f commit db06c08

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

go/ql/src/experimental/frameworks/CleverGo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"Name": "CleverGo",
33
"Models": [
44
{
5-
"Name": "UntrustedSources",
5+
"Name": "RemoteSources",
66
"Kind": "RemoteFlowSource",
77
"Methods": [
88
{

go/ql/src/experimental/frameworks/CleverGo.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ private module CleverGo {
1616
/**
1717
* Provides models of remote flow sources.
1818
*/
19-
private class UntrustedSources extends RemoteFlowSource::Range {
20-
UntrustedSources() {
19+
private class RemoteSources extends RemoteFlowSource::Range {
20+
RemoteSources() {
2121
// Methods on types of package: clevergo.tech/[email protected]
2222
exists(string receiverName, string methodName, Method mtd, FunctionOutput out |
2323
this = out.getExitNode(mtd.getACall()) and

go/ql/test/experimental/frameworks/CleverGo/UntrustedSources.go renamed to go/ql/test/experimental/frameworks/CleverGo/RemoteSources.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/ql/test/library-tests/semmle/go/frameworks/Encoding/jsoniter.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ class UntrustedFunction extends Function {
66
UntrustedFunction() { this.getName() = ["getUntrustedString", "getUntrustedBytes"] }
77
}
88

9-
class UntrustedSource extends DataFlow::Node, RemoteFlowSource::Range {
10-
UntrustedSource() { this = any(UntrustedFunction f).getACall() }
9+
class RemoteSource extends DataFlow::Node, RemoteFlowSource::Range {
10+
RemoteSource() { this = any(UntrustedFunction f).getACall() }
1111
}
1212

1313
from CommandInjection::Flow::PathNode source, CommandInjection::Flow::PathNode sink

0 commit comments

Comments
 (0)