Skip to content

Commit b6adff6

Browse files
committed
Fix jsoniter test
1 parent 53dd269 commit b6adff6

File tree

1 file changed

+2
-0
lines changed
  • go/ql/test/library-tests/semmle/go/frameworks/Encoding

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class UntrustedFunction extends Function {
1010

1111
class RemoteSource extends DataFlow::Node, RemoteFlowSource::Range {
1212
RemoteSource() { this = any(UntrustedFunction f).getACall() }
13+
14+
override string getSourceType() { result = "untrusted function call" }
1315
}
1416

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

0 commit comments

Comments
 (0)