DragonFly commits List (threaded) for 2012-06
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: test/cocci: Add a patch that checks for various sizeof(<pointer>) issues.
commit bdeef5f98f030addb9a85336b10b2d108beb7f6e
Author: Sascha Wildner <saw@online.de>
Date: Mon Jun 11 10:59:11 2012 +0200
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
Summary of changes:
test/cocci/noderef.cocci | 65 ++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 65 insertions(+), 0 deletions(-)
create mode 100644 test/cocci/noderef.cocci
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bdeef5f98f030addb9a85336b10b2d108beb7f6e
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]