Skip to content

Commit 4cc3a6d

Browse files
committed
Swift: Fix missing QLDoc.
1 parent c5178de commit 4cc3a6d

File tree

5 files changed

+20
-3
lines changed

5 files changed

+20
-3
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ abstract class SqlInjectionBarrier extends DataFlow::Node { }
2222
* A unit class for adding additional flow steps.
2323
*/
2424
class SqlInjectionAdditionalFlowStep extends Unit {
25+
/**
26+
* Holds if the step from `node1` to `node2` should be considered a flow
27+
* step for paths related to SQL injection vulnerabilities.
28+
*/
2529
abstract predicate step(DataFlow::Node nodeFrom, DataFlow::Node nodeTo);
2630
}
2731

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ abstract class UncontrolledFormatStringBarrier extends DataFlow::Node { }
2323
* A unit class for adding additional flow steps.
2424
*/
2525
class UncontrolledFormatStringAdditionalFlowStep extends Unit {
26+
/**
27+
* Holds if the step from `node1` to `node2` should be considered a flow
28+
* step for paths related to uncontrolled format string vulnerabilities.
29+
*/
2630
abstract predicate step(DataFlow::Node nodeFrom, DataFlow::Node nodeTo);
2731
}
2832

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ abstract class UnsafeJsEvalBarrier extends DataFlow::Node { }
2222
* A unit class for adding additional flow steps.
2323
*/
2424
class UnsafeJsEvalAdditionalFlowStep extends Unit {
25+
/**
26+
* Holds if the step from `node1` to `node2` should be considered a flow
27+
* step for paths related to javascript evaluation vulnerabilities.
28+
*/
2529
abstract predicate step(DataFlow::Node nodeFrom, DataFlow::Node nodeTo);
2630
}
2731

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ abstract class UnsafeWebViewFetchBarrier extends DataFlow::Node { }
2727
* A unit class for adding additional flow steps.
2828
*/
2929
class UnsafeWebViewFetchAdditionalFlowStep extends Unit {
30+
/**
31+
* Holds if the step from `node1` to `node2` should be considered a flow
32+
* step for paths related to unsafe webview fetch vulnerabilities.
33+
*/
3034
abstract predicate step(DataFlow::Node nodeFrom, DataFlow::Node nodeTo);
3135
}
3236

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ abstract class XxeBarrier extends DataFlow::Node { }
1414

1515
/**
1616
* A unit class for adding additional flow steps.
17-
*
18-
* Extend this class to add additional flow steps that should apply to paths related to
19-
* XML external entities (XXE) vulnerabilities.
2017
*/
2118
class XxeAdditionalFlowStep extends Unit {
19+
/**
20+
* Holds if the step from `node1` to `node2` should be considered a flow
21+
* step for paths related to XML external entities (XXE) vulnerabilities.
22+
*/
2223
abstract predicate step(DataFlow::Node n1, DataFlow::Node n2);
2324
}
2425

0 commit comments

Comments
 (0)