mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
CPP: BinaryArithmeticOperation -> AddExpr.
This commit is contained in:
@@ -36,7 +36,7 @@ predicate memberMayBeVarSize(Class c, MemberVariable v) {
|
||||
so.(SizeofExprOperator).getExprOperand().getType().getUnspecifiedType() = c |
|
||||
|
||||
// arithmetic is performed on the result
|
||||
so.getParent*() instanceof BinaryArithmeticOperation
|
||||
so.getParent*() instanceof AddExpr
|
||||
) or exists(AddressOfExpr aoe |
|
||||
// `&(c.v)` is taken
|
||||
aoe.getAddressable() = v
|
||||
|
||||
Reference in New Issue
Block a user