Skip to content

Commit cfbb9e3

Browse files
MathiasVPgeoffw0
andauthored
Apply suggestions from code review
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com>
1 parent 7a425ff commit cfbb9e3

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

swift/ql/lib/codeql/swift/dataflow/internal/DataFlowPrivate.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ private module Cached {
148148
// flow through `!`
149149
nodeFrom.asExpr() = nodeTo.asExpr().(ForceValueExpr).getSubExpr()
150150
or
151+
// flow through a flow summary (extension of `SummaryModelCsv`)
151152
FlowSummaryImpl::Private::Steps::summaryLocalStep(nodeFrom, nodeTo, true)
152153
}
153154

swift/ql/lib/codeql/swift/dataflow/internal/TaintTrackingPrivate.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ private module Cached {
4949
ae.getType().getName() = "String"
5050
)
5151
or
52+
// flow through a flow summary (extension of `SummaryModelCsv`)
5253
FlowSummaryImpl::Private::Steps::summaryLocalStep(nodeFrom, nodeTo, false)
5354
}
5455

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ private class UrlRemoteFlowSource extends SourceModelCsv {
1414
}
1515
}
1616

17+
/**
18+
* A model for `URL` members that permit taint flow.
19+
*/
1720
private class UrlSummaries extends SummaryModelCsv {
1821
override predicate row(string row) {
1922
row =

0 commit comments

Comments
 (0)