Skip to content

Commit cac6e94

Browse files
authored
Merge pull request #11411 from atorralba/atorralba/swift/fix-nsdata-test
Swift: Fix expectation in NSData tests
2 parents 04450c5 + 4f8ef13 commit cac6e94

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
| nsdata.swift:110:45:110:45 | bytes | Unexpected result: tainted=108 |

swift/ql/test/library-tests/dataflow/taint/nsdata.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func test() {
107107
// ";NSData;true;enumerateBytes(_:);;;Argument[-1];Argument[0].Parameter[0];taint"
108108
let nsDataTainted17 = source() as! NSData
109109
nsDataTainted17.enumerateBytes {
110-
bytes, byteRange, stop in sink(arg: bytes) // tainted=108
110+
bytes, byteRange, stop in sink(arg: bytes) // $ tainted=108
111111
}
112112
// ";NSData;true;getBytes(_:);;;Argument[-1];Argument[0];taint",
113113
let nsDataTainted18 = source() as! NSData

0 commit comments

Comments
 (0)