OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-213
/
scripts
/
coccinelle
/
misc
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2024 07:14:16 AM
rwxr-xr-x
📄
array_size.cocci
1.66 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
badty.cocci
1.68 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
boolconv.cocci
1.44 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
boolinit.cocci
2.2 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
boolreturn.cocci
698 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
bugon.cocci
1.45 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cond_no_effect.cocci
2.04 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cstptr.cocci
827 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
doubleinit.cocci
1.36 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ifaddr.cocci
659 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
ifcol.cocci
1.21 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
irqf_oneshot.cocci
1.91 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
noderef.cocci
1.17 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
of_table.cocci
1.33 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
orplus.cocci
1 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
returnvar.cocci
1.22 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
semicolon.cocci
1.04 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
warn.cocci
1.62 KB
01/28/2018 09:20:33 PM
rw-r--r--
Editing: orplus.cocci
Close
/// Check for constants that are added but are used elsewhere as bitmasks /// The results should be checked manually to ensure that the nonzero /// bits in the two constants are actually disjoint. /// // Confidence: Moderate // Copyright: (C) 2013 Julia Lawall, INRIA/LIP6. GPLv2. // Copyright: (C) 2013 Gilles Muller, INRIA/LIP6. GPLv2. // URL: http://coccinelle.lip6.fr/ // Comments: // Options: --no-includes --include-headers virtual org virtual report virtual context @r@ constant c,c1; identifier i,i1; position p; @@ ( c1 + c - 1 | c1@i1 +@p c@i ) @s@ constant r.c, r.c1; identifier i; expression e; @@ ( e | c@i | e & c@i | e |= c@i | e &= c@i | e | c1@i | e & c1@i | e |= c1@i | e &= c1@i ) @depends on s@ position r.p; constant c1,c2; @@ * c1 +@p c2 @script:python depends on s && org@ p << r.p; @@ cocci.print_main("sum of probable bitmasks, consider |",p) @script:python depends on s && report@ p << r.p; @@ msg = "WARNING: sum of probable bitmasks, consider |" coccilib.report.print_report(p[0],msg)