Skip to content

Commit c90dc62

Browse files
committed
C++: Autoformat.
1 parent 19b7d46 commit c90dc62

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cpp/ql/src/experimental/Security/CWE/CWE-788/AccessOfMemoryLocationAfterEndOfBufferUsingStrncat.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ class WrongCallStrncat extends FunctionCall {
3838
*/
3939
predicate isExpressionEqualSizeof() {
4040
// the left side of the expression `someExpr` is `sizeof(buf)`.
41-
globalValueNumber(this.getArgument(0)) = globalValueNumber(leftsomeExpr.(SizeofExprOperator).getExprOperand())
41+
globalValueNumber(this.getArgument(0)) =
42+
globalValueNumber(leftsomeExpr.(SizeofExprOperator).getExprOperand())
4243
or
4344
// value of the left side of the expression `someExpr` equal `sizeof(buf)` value, and `buf` is array.
4445
leftsomeExpr.getValue().toInt() = this.getArgument(0).getType().getSize()

0 commit comments

Comments
 (0)