Skip to content

Commit 2f517de

Browse files
committed
CPP: BinaryArithmeticOperation -> AddExpr.
1 parent c9ed039 commit 2f517de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/semmle/code/cpp/commons/Buffer.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ predicate memberMayBeVarSize(Class c, MemberVariable v) {
3636
so.(SizeofExprOperator).getExprOperand().getType().getUnspecifiedType() = c |
3737

3838
// arithmetic is performed on the result
39-
so.getParent*() instanceof BinaryArithmeticOperation
39+
so.getParent*() instanceof AddExpr
4040
) or exists(AddressOfExpr aoe |
4141
// `&(c.v)` is taken
4242
aoe.getAddressable() = v

0 commit comments

Comments
 (0)