]> git.ipfire.org Git - thirdparty/systemd.git/blob - coccinelle/reallocarray.cocci
test-network: tun/tap fd may be owned by tentative worker processes
[thirdparty/systemd.git] / coccinelle / reallocarray.cocci
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 @@
3 expression q, p, n, m;
4 @@
5 - q = realloc(p, (n)*(m))
6 + q = reallocarray(p, n, m)
7 @@
8 expression q, p, n, m;
9 @@
10 - q = realloc(p, n*(m))
11 + q = reallocarray(p, n, m)
12 @@
13 expression q, p, n, m;
14 @@
15 - q = realloc(p, (n)*m)
16 + q = reallocarray(p, n, m)
17 @@
18 expression q, p, n, m;
19 @@
20 - q = realloc(p, n*m)
21 + q = reallocarray(p, n, m)