[<prev] [next>] [day] [month] [year] [list]
Message-ID: <3d375680-cf02-5e2d-fcf0-69b3bdcbf748@web.de>
Date: Wed, 17 Jun 2020 18:14:08 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Denis Efremov <efremov@...ux.com>,
Julia Lawall <julia.lawall@...6.fr>,
Coccinelle <cocci@...teme.lip6.fr>
Cc: "Gustavo A. R. Silva" <garsilva@...eddedor.com>,
Kees Cook <keescook@...omium.org>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] coccinelle: misc: add array_size_dup script to detect
missed overflow checks
> (
> * 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
Powered by blists - more mailing lists