Skip to content

Commit 1fc112e

Browse files
committed
Swift: Fix for OptionSet.
1 parent e08eac0 commit 1fc112e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

swift/ql/lib/codeql/swift/frameworks/StandardLibrary/RawRepresentable.qll

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ private import codeql.swift.dataflow.FlowSteps
1212
*/
1313
private class RawRepresentableSummaries extends SummaryModelCsv {
1414
override predicate row(string row) {
15-
row = ";RawRepresentable;true;init(rawValue:);;;Argument[0];ReturnValue;taint"
15+
row = [
16+
";RawRepresentable;true;init(rawValue:);;;Argument[0];ReturnValue;taint",
17+
";OptionSet;true;init(rawValue:);;;Argument[0];ReturnValue;taint"
18+
]
1619
}
1720
}
1821

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
testFailures
2-
| optionset.swift:60:49:61:1 | // $ tainted=60\n | Missing result: tainted=60 |
3-
| optionset.swift:65:58:66:1 | // $ tainted=65\n | Missing result: tainted=65 |
42
failures

0 commit comments

Comments
 (0)