Skip to content

Commit de5cf84

Browse files
committed
Swift: Address check failures.
1 parent a5bb934 commit de5cf84

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

swift/ql/lib/codeql/swift/security/StringLengthConflationExtensions.qll

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ abstract class StringLengthConflationSink extends DataFlow::Node {
8282
abstract StringType getCorrectStringType();
8383
}
8484

85+
/**
86+
* A sanitizer for string length conflation vulnerabilities.
87+
*/
8588
abstract class StringLengthConflationSanitizer extends DataFlow::Node { }
8689

8790
/**
@@ -110,8 +113,7 @@ private class StringLengthConflationSources extends SourceModelCsv {
110113
override predicate row(string row) {
111114
row =
112115
[
113-
";String;true;count;;;;string-length",
114-
";String.UTF8View;true;count;;;;string-utf8-length",
116+
";String;true;count;;;;string-length", ";String.UTF8View;true;count;;;;string-utf8-length",
115117
";String.UTF16View;true;count;;;;string-utf16-length",
116118
";NSString;true;length;;;;nsstring-length",
117119
";NSMutableString;true;length;;;;nsstring-length",

0 commit comments

Comments
 (0)