summaryrefslogtreecommitdiffstats
path: root/scripts/coccinelle/misc/badty.cocci
Commit message (Collapse)AuthorAgeFilesLines
* Coccinelle: Script to detect incorrect argument to sizeofHimangi Saraogi2014-08-061-0/+76
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>
OpenPOWER on IntegriCloud