Skip to content

Commit b9a1a45

Browse files
committed
C++: Autoformat.
1 parent 51188aa commit b9a1a45

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cpp/ql/lib/semmle/code/cpp/commons/NullTermination.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ predicate mayAddNullTerminator(Expr e, VariableAccess va) {
6565
exists(AsmStmt s | s.getEnclosingFunction() = f)
6666
or
6767
// function where the relevant parameter is returned (leaking it)
68-
exists(ReturnStmt rs | rs.getEnclosingFunction() = f and rs.getExpr().getAChild*() = f.getParameter(i).getAnAccess())
68+
exists(ReturnStmt rs |
69+
rs.getEnclosingFunction() = f and rs.getExpr().getAChild*() = f.getParameter(i).getAnAccess()
70+
)
6971
)
7072
or
7173
// Call without target (e.g., function pointer call)

0 commit comments

Comments
 (0)