Re: [PATCH] coccinelle: misc: add array_size_dup script to detect missed overflow checks

From: Markus Elfring
Date: Wed Jun 17 2020 - 12:14:27 EST


> (
> * size = E1 * E2;@p
> |
> * size = E1 * E2 * E3;@p
> |
> * size = E1 * E2 + E3;@p
> )

I suggest to reconsider also the order of elements for such a SmPL disjunction.

Can a computation like âE2 * E3â also be matched by the expression
metavariable âE2â alone?

Regards,
Markus