mirror of
https://github.com/github/codeql.git
synced 2025-12-23 20:26:32 +01:00
22 lines
342 B
Swift
22 lines
342 B
Swift
//codeql-extractor-options: -module-name RealmSwift
|
|
|
|
// --- stubs ---
|
|
|
|
class Object {
|
|
}
|
|
|
|
// --- tests ---
|
|
|
|
class MyRealmSwiftObject3 : Object {
|
|
override init() { data = "" }
|
|
|
|
var data: String
|
|
}
|
|
|
|
func test1(o: MyRealmSwiftObject3, myHarmless: String, myPassword : String) {
|
|
// ...
|
|
o.data = myPassword // BAD
|
|
o.data = myHarmless
|
|
// ...
|
|
}
|