Skip to content

Commit f925f35

Browse files
committed
unified: Update / clarify the TODO list.
1 parent c1d2fe9 commit f925f35

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎unified/ql/src/queries/security/CWE-134/UncontrolledFormatString.ql‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ module TaintedFormatConfig implements DataFlow::ConfigSig {
1919
predicate isSource(DataFlow::Node node) { Models::isSource(node, _) }
2020

2121
predicate isSink(DataFlow::Node node) {
22-
// TODO: Model the remaining printf variants from original Swift's StringFormat.qll.
22+
// TODO: the MaD format currently has the varargs argument first in the
23+
// signature, rather than in its normal position.
24+
// TODO: we currently model `printf(_:_:)` etc explicitly, rather than with a
25+
// more flexible pattern as in the original Swift's `StringFormat.qll`.
2326
// TODO: Port the variadic-call heuristic from original Swift's
24-
// UncontrolledFormatStringExtensions.qll once variadic parameters are extracted,
25-
// excluding predicate-injection sinks.
27+
// `UncontrolledFormatStringExtensions.qll` once variadic parameters are extracted.
2628
Models::isSink(node, "format-string")
2729
}
2830

0 commit comments

Comments
 (0)