Skip to content

Commit c155394

Browse files
MarkLee131geoffw0
andauthored
the [] syntax directly
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com>
1 parent 2c76e6e commit c155394

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cpp/ql/src/Security/CWE/CWE-134/UncontrolledFormatString.ql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ module Config implements DataFlow::ConfigSig {
4747
exists(PrintfLikeFunction printf |
4848
printf.outermostWrapperFunctionCall([node.asExpr(), node.asIndirectExpr()], _)
4949
) and
50-
not isPrintfImplementation(node.asExpr().getEnclosingFunction()) and
51-
not isPrintfImplementation(node.asIndirectExpr().getEnclosingFunction())
50+
not isPrintfImplementation([node.asExpr(), node.asIndirectExpr()].getEnclosingFunction())
5251
}
5352

5453
private predicate isArithmeticNonCharType(ArithmeticType type) {

0 commit comments

Comments
 (0)