git: test/cocci: Add a patch that checks for various sizeof(<pointer>) issues.
Sascha Wildner
swildner at crater.dragonflybsd.org
Mon Jun 11 01:59:55 PDT 2012
commit bdeef5f98f030addb9a85336b10b2d108beb7f6e
Author: Sascha Wildner <saw at 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
More information about the Commits
mailing list