Skip to content

Commit 7e962dc

Browse files
committed
Swift: Accept fixed test cases.
1 parent 1cde183 commit 7e962dc

File tree

1 file changed

+2
-2
lines changed
  • swift/ql/test/library-tests/dataflow/taint/libraries

1 file changed

+2
-2
lines changed

swift/ql/test/library-tests/dataflow/taint/libraries/string.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ func taintThroughSimpleStringOperations() {
226226
sink(arg: String(format: tainted, locale: nil, 1, 2, 3)) // $ tainted=217
227227
sink(arg: String(format: tainted, locale: nil, arguments: [])) // $ tainted=217
228228
sink(arg: String.localizedStringWithFormat(tainted, 1, 2, 3)) // $ tainted=217
229-
sink(arg: String(format: "%s", tainted)) // $ MISSING: tainted=217
230-
sink(arg: String(format: "%i %i %i", 1, 2, taintedInt)) // $ MISSING: tainted=218
229+
sink(arg: String(format: "%s", tainted)) // $ tainted=217
230+
sink(arg: String(format: "%i %i %i", 1, 2, taintedInt)) // $ tainted=218
231231

232232
sink(arg: String(repeating: clean, count: 2))
233233
sink(arg: String(repeating: tainted, count: 2)) // $ tainted=217

0 commit comments

Comments
 (0)