Skip to content

Commit 7ef1911

Browse files
jketemaCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent b10abb6 commit 7ef1911

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

swift/ql/test/query-tests/Security/CWE-311/testCoreData2.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func testCoreData2_1(obj: MyManagedObject2, maybeObj: MyManagedObject2?, value:
4040
obj.myBankAccountNumber2 = value // $ MISSING: Alert[swift/cleartext-storage-database] // BAD [NOT DETECTED]
4141
obj.myBankAccountNumber2 = bankAccountNo // $ Alert[swift/cleartext-storage-database]
4242
obj.notStoredBankAccountNumber = value // GOOD (not stored in the database)
43-
obj.notStoredBankAccountNumber = bankAccountNo // $ SPURIOUS: Alert[swift/cleartext-storage-database] // GOOD (not stored in the datbase) [FALSE POSITIVE]
43+
obj.notStoredBankAccountNumber = bankAccountNo // $ SPURIOUS: Alert[swift/cleartext-storage-database] // GOOD (not stored in the database) [FALSE POSITIVE]
4444

4545
maybeObj?.myValue = value // GOOD (not sensitive)
4646
maybeObj?.myValue = bankAccountNo // $ Alert[swift/cleartext-storage-database]

0 commit comments

Comments
 (0)