diff options
author | Himangi Saraogi <himangi774@gmail.com> | 2014-07-14 23:04:10 +0530 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2014-08-06 12:10:17 +0200 |
commit | e52320c3b20cbe209e98f2443866209120595636 (patch) | |
tree | 7b3be9ce6b8449d42c2b746b2ddf83800c5e5bec /drivers | |
parent | 7ab04ea0e32cf8cabcbc33cefac36e5f9258734e (diff) | |
download | op-kernel-dev-e52320c3b20cbe209e98f2443866209120595636.zip op-kernel-dev-e52320c3b20cbe209e98f2443866209120595636.tar.gz |
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>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions