test/cocci: Add a patch that checks for various sizeof(<pointer>) issues.
authorSascha Wildner <saw@online.de>
Mon, 11 Jun 2012 08:59:11 +0000 (10:59 +0200)
committerSascha Wildner <saw@online.de>
Mon, 11 Jun 2012 08:59:24 +0000 (10:59 +0200)
commitbdeef5f98f030addb9a85336b10b2d108beb7f6e
tree57034fe8521f95c4da62fd1ee28929c95700f5aa
parentc4c4ba1fe5ed9f8a8993ed10cc1853414b350d34
test/cocci: Add a patch that checks for various sizeof(<pointer>) issues.

It will warn about either assigning the size of a pointer to a variable
or passing both <pointer> and sizeof(<pointer>) to a function. These
patterns almost always point to bugs.

Taken-from: Linux
test/cocci/noderef.cocci [new file with mode: 0644]