From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Date: Wed, 31 Jan 2018 17:53:13 +0000 Subject: =?UTF-8?Q?Re:_[v2]_Coccinelle:_zalloc-simple:_Delete_function_?= =?UTF-8?B?4oCca21lbV9jYWNoZV9hbGxvY Message-Id: List-Id: References: <243e83a2-ae0c-2dd2-7f8f-83ac0978cc0e@users.sourceforge.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Julia Lawall , Masahiro Yamada , Himanshu Jha Cc: cocci@systeme.lip6.fr, LKML , kernel-janitors@vger.kernel.org, Gilles Muller , "Luis R. Rodriguez" , Michal Marek , Nicolas Palix >> Will the rule set be more consistent then? > > If E1 is not bound by the kem_cache_alloc rule, then it will match anything. How much was such a software behaviour intended by the discussed SmPL script? > The user can check if it is appropriate. How does such an information fit to expectations for safe source code analysis? > Another option would be to use the type of the variable storing the result > of the call to compute the expected size. How would this suggestion help here? Regards, Markus