]> git.ipfire.org Git - thirdparty/systemd.git/blob - coccinelle/reallocarray.cocci
coccinelle: ignore function transformations causing recursion
[thirdparty/systemd.git] / coccinelle / reallocarray.cocci
1 @@
2 expression q, p, n, m;
3 @@
4 - q = realloc(p, (n)*(m))
5 + q = reallocarray(p, n, m)
6 @@
7 expression q, p, n, m;
8 @@
9 - q = realloc(p, n*(m))
10 + q = reallocarray(p, n, m)
11 @@
12 expression q, p, n, m;
13 @@
14 - q = realloc(p, (n)*m)
15 + q = reallocarray(p, n, m)
16 @@
17 expression q, p, n, m;
18 @@
19 - q = realloc(p, n*m)
20 + q = reallocarray(p, n, m)