File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
swift/ql/test/library-tests/dataflow/taint/libraries Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ enum CInterop {
9
9
typealias PlatformChar = CInterop . Char
10
10
}
11
11
12
- struct FilePath {
12
+ struct FilePath : CustomStringConvertible , CustomDebugStringConvertible {
13
13
struct Component {
14
14
init ? ( _ string: String ) { }
15
15
@@ -184,8 +184,8 @@ func test_files(e1: Encoder) {
184
184
185
185
// --- FilePath member variables ---
186
186
187
- sink ( string: tainted. description) // $ MISSING: tainted=133
188
- sink ( string: tainted. debugDescription) // $ MISSING: tainted=133
187
+ sink ( string: tainted. description) // $ tainted=133
188
+ sink ( string: tainted. debugDescription) // $ tainted=133
189
189
sink ( string: tainted. extension!) // $ tainted=133
190
190
sink ( string: tainted. stem!) // $ tainted=133
191
191
sink ( string: tainted. string) // $ tainted=133
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ struct URLResource {
154
154
let subdirectory : String ?
155
155
}
156
156
157
- struct URLRequest {
157
+ struct URLRequest : CustomStringConvertible , CustomDebugStringConvertible {
158
158
enum CachePolicy { case none }
159
159
enum NetworkServiceType { case none }
160
160
enum Attribution { case none }
@@ -463,9 +463,9 @@ func taintThroughUrlRequest() {
463
463
sink ( any: clean. attribution)
464
464
sink ( any: tainted. attribution)
465
465
sink ( any: clean. description)
466
- sink ( any: tainted. description)
466
+ sink ( any: tainted. description) // $ tainted=431
467
467
sink ( any: clean. debugDescription)
468
- sink ( any: tainted. debugDescription)
468
+ sink ( any: tainted. debugDescription) // $ tainted=431
469
469
sink ( any: clean. customMirror)
470
470
sink ( any: tainted. customMirror)
471
471
sink ( any: clean. hashValue)
You can’t perform that action at this time.
0 commit comments