File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
swift/ql/test/library-tests/dataflow/taint Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -99,3 +99,11 @@ func testConversions() {
99
99
sink ( arg: v3) // $ tainted=94
100
100
sink ( arg: v3 as! MyParentClass ) // $ tainted=94
101
101
}
102
+
103
+ var myCEnumConst : Int = 0
104
+ typealias MyCEnumType = UInt32
105
+
106
+ func testCEnum( ) {
107
+ sink ( arg: MyCEnumType ( myCEnumConst) )
108
+ sink ( arg: MyCEnumType ( sourceInt ( ) ) ) // $ tainted=108
109
+ }
Original file line number Diff line number Diff line change @@ -589,7 +589,7 @@ func taintedThroughConversion() {
589
589
sink ( arg: String ( describing: source ( ) ) ) // $ tainted=589
590
590
591
591
sink ( arg: Int ( " 123 " ) !)
592
- sink ( arg: Int ( source2 ( ) ) !) // $ MISSING: tainted=592
592
+ sink ( arg: Int ( source2 ( ) ) !) // $ tainted=592
593
593
}
594
594
595
595
func untaintedFields( ) {
You can’t perform that action at this time.
0 commit comments