1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
@r1@
identifier fn, m, f, a, v, t;
identifier func =~ "thread_add_";
type T1, T2;
position p;
@@
?static
T1 fn(T2 *t)
{
...
func(m,f,a,v,&t)@p
...
}
@r2@
identifier m, f, a, v, t;
identifier func =~ "thread_add_";
type T1;
position p;
@@
T1 *t;
...
func(m,f,a,v,&t)@p
@script:python@
p << r1.p;
@@
coccilib.report.print_report(p[0],"Passed double 'struct thread' pointer")
@script:python@
p << r2.p;
@@
coccilib.report.print_report(p[0],"Passed double 'struct thread' pointer")
|