| .. | |||||
| boolinit.cocci | |||||
| cstptr.cocci | |||||
| doubleinit.cocci | |||||
| ifaddr.cocci | |||||
| ifcol.cocci | |||||
| irqf_oneshot.cocci | |||||
| memcpy-assign.cocci | |||||
| noderef.cocci | |||||
| orplus.cocci | |||||
| semicolon.cocci | |||||
| warn.cocci |
| Server IP : 103.169.32.36 / Your IP : 216.73.217.13 Web Server : Apache System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : apache ( 48) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/modules/3.10.0-1160.119.1.el7.x86_64/source/scripts/coccinelle/misc/ |
Upload File : |
/// the address of a variable or field is non-zero is likely always to bo
/// non-zero
///
// Confidence: High
// Copyright: (C) 2012 Julia Lawall, INRIA/LIP6. GPLv2.
// Copyright: (C) 2012 Gilles Muller, INRIA/LiP6. GPLv2.
// URL: http://coccinelle.lip6.fr/
// Comments:
// Options: -no_includes -include_headers
virtual org
virtual report
virtual context
@r@
expression x;
statement S1,S2;
position p;
@@
*if@p (&x)
S1 else S2
@script:python depends on org@
p << r.p;
@@
cocci.print_main("test of a variable/field address",p)
@script:python depends on report@
p << r.p;
@@
msg = "ERROR: test of a variable/field address"
coccilib.report.print_report(p[0],msg)
| .. | |||||
| boolinit.cocci | |||||
| cstptr.cocci | |||||
| doubleinit.cocci | |||||
| ifaddr.cocci | |||||
| ifcol.cocci | |||||
| irqf_oneshot.cocci | |||||
| memcpy-assign.cocci | |||||
| noderef.cocci | |||||
| orplus.cocci | |||||
| semicolon.cocci | |||||
| warn.cocci |