From mboxrd@z Thu Jan 1 00:00:00 1970 From: elfring@users.sourceforge.net (SF Markus Elfring) Date: Fri, 22 May 2015 12:40:42 +0200 Subject: [Cocci] array index range checking In-Reply-To: References: <555E4A91.2010300@users.sourceforge.net> <555EC300.50503@users.sourceforge.net> <555EFF6F.2030603@users.sourceforge.net> Message-ID: <555F07AA.7030504@users.sourceforge.net> To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr > i want that the script compare the index to the size of the array. How do you think about to try this comparison by Python or OCaml scripts (within SmPL)? > i don't know if coccinelle can do this. I have got the impression that this software can also find some update candidates for your search pattern in principle. But I imagine that the software development efforts will increase significantly to make its application safer to some degree. How would you like to handle scopes around array variables generally? Regards, Markus