File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
swift/ql/lib/codeql/swift/frameworks Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 3
3
*/
4
4
5
5
private import Alamofire.Alamofire
6
+ private import JavaScriptCore.JavaScriptCore
6
7
private import StandardLibrary.StandardLibrary
7
8
private import UIKit.UIKit
8
9
private import Xml.Xml
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Provides models for the `JavaScriptCore` library.
3
+ */
4
+
5
+ import swift
6
+ private import codeql.swift.dataflow.ExternalFlow
7
+
8
+ /**
9
+ * A model for `JavaScriptCore` functions and class members that permit taint flow.
10
+ */
11
+ private class JSStringSummaries extends SummaryModelCsv {
12
+ override predicate row ( string row ) {
13
+ row =
14
+ [
15
+ ";;false;JSStringCreateWithUTF8CString(_:);;;Argument[0];ReturnValue;taint" ,
16
+ ";;false;JSStringCreateWithCharacters(_:_:);;;Argument[0];ReturnValue;taint" ,
17
+ ";;false;JSStringRetain(_:);;;Argument[0];ReturnValue;taint" ,
18
+ ]
19
+ }
20
+ }
You can’t perform that action at this time.
0 commit comments