Skip to content

Commit 0619192

Browse files
committed
Swift: Correct a couple of FilePath models.
1 parent dc9f171 commit 0619192

File tree

1 file changed

+4
-2
lines changed
  • swift/ql/lib/codeql/swift/frameworks/StandardLibrary

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ private class FilePathSummaries extends SummaryModelCsv {
3131
";FilePath;true;init(root:_:);;;Argument[0..1];ReturnValue;taint",
3232
";FilePath;true;init(root:components:);;;Argument[0..1];ReturnValue;taint",
3333
";FilePath;true;encode(to:);;;Argument[-1];Argument[0];taint",
34-
";FilePath;true;withCString(_:);;;Argument[-1];Argument[0].Parameter[0];taint",
35-
";FilePath;true;withPlatformString(_:);;;Argument[-1];Argument[0].Parameter[0];taint",
34+
";FilePath;true;withCString(_:);;;Argument[-1];Argument[0].Parameter[0].CollectionElement;taint",
35+
";FilePath;true;withCString(_:);;;Argument[0].ReturnValue;ReturnValue;taint",
36+
";FilePath;true;withPlatformString(_:);;;Argument[-1];Argument[0].Parameter[0].CollectionElement;taint",
37+
";FilePath;true;withPlatformString(_:);;;Argument[0].ReturnValue;ReturnValue;taint",
3638
";FilePath;true;append(_:);;;Argument[0];Argument[-1];taint",
3739
";FilePath;true;appending(_:);;;Argument[-1..0];ReturnValue;taint",
3840
";FilePath;true;lexicallyNormalized();;;Argument[-1];ReturnValue;taint",

0 commit comments

Comments
 (0)