All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cocci] array addressing range checking by coccinelle
@ 2015-05-21 10:19 Zied Habtoul
  2015-05-21 21:13 ` [Cocci] array index range checking SF Markus Elfring
  0 siblings, 1 reply; 10+ messages in thread
From: Zied Habtoul @ 2015-05-21 10:19 UTC (permalink / raw)
  To: cocci

hello,
i want to implement a script to check this rule
Before any array access, the addressing range must be checked.

example
in this code

void main ()
{

int T[10];
 T[20] = 5 ;

}


the script must detect an error on ( T[20] = 5 ;)  because there is an
overflow of the array size.

any suggestions please to implement this script ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://systeme.lip6.fr/pipermail/cocci/attachments/20150521/f481d227/attachment.html>

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-05-22 11:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-21 10:19 [Cocci] array addressing range checking by coccinelle Zied Habtoul
2015-05-21 21:13 ` [Cocci] array index range checking SF Markus Elfring
2015-05-21 21:55   ` Zied Habtoul
2015-05-22  5:47     ` SF Markus Elfring
2015-05-22  8:59       ` Zied Habtoul
2015-05-22 10:05         ` SF Markus Elfring
2015-05-22 10:13           ` Zied Habtoul
2015-05-22 10:40             ` SF Markus Elfring
2015-05-22 11:11             ` Julia Lawall
2015-05-22 11:53               ` SF Markus Elfring

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.