kernel-ark/scripts/coccinelle
Himangi Saraogi e52320c3b2 Coccinelle: Script to detect incorrect argument to sizeof
This makes an effort to find cases where the argument to sizeof is wrong
in memory allocation functions by checking the type of the allocated
memory when it is a double pointer and ensuring the sizeof argument takes
a pointer to the the memory being allocated. There are false positives
in cases the sizeof argument is not used in constructing the return value.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Michal Marek <mmarek@suse.cz>
2014-08-06 12:10:17 +02:00
..
api Coccinelle: Script to detect cast after memory allocation 2014-08-06 12:10:17 +02:00
free Coccinelle: Update the options used to the new option scheme 2013-07-03 22:58:13 +02:00
iterators Coccinelle: Update the options used to the new option scheme 2013-07-03 22:58:13 +02:00
locks Coccinelle: Update the options used to the new option scheme 2013-07-03 22:58:13 +02:00
misc Coccinelle: Script to detect incorrect argument to sizeof 2014-08-06 12:10:17 +02:00
null coccinelle/null: solve parse error 2014-08-06 12:10:17 +02:00
tests Coccinelle: Update the options used to the new option scheme 2013-07-03 22:58:13 +02:00