mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Swift: Fix for OptionSet.
This commit is contained in:
@@ -12,7 +12,10 @@ private import codeql.swift.dataflow.FlowSteps
|
||||
*/
|
||||
private class RawRepresentableSummaries extends SummaryModelCsv {
|
||||
override predicate row(string row) {
|
||||
row = ";RawRepresentable;true;init(rawValue:);;;Argument[0];ReturnValue;taint"
|
||||
row = [
|
||||
";RawRepresentable;true;init(rawValue:);;;Argument[0];ReturnValue;taint",
|
||||
";OptionSet;true;init(rawValue:);;;Argument[0];ReturnValue;taint"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
testFailures
|
||||
| optionset.swift:60:49:61:1 | // $ tainted=60\n | Missing result: tainted=60 |
|
||||
| optionset.swift:65:58:66:1 | // $ tainted=65\n | Missing result: tainted=65 |
|
||||
failures
|
||||
|
||||
Reference in New Issue
Block a user