coccinelle: add reallocarray() coccinelle script
authorLennart Poettering <lennart@poettering.net>
Tue, 27 Feb 2018 18:09:22 +0000 (19:09 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 2 Mar 2018 11:39:07 +0000 (12:39 +0100)
commit62d74c78b59f95a76778d9fa8dbe3b098afa2aad
tree138ea4e336b01254a6766e547fdc10c3728255ef
parent3209c8e6502c095bb7a88a3e915f06dd56228ed4
coccinelle: add reallocarray() coccinelle script

Let's systematically make use of reallocarray() whereever we invoke
realloc() with a product of two values.
16 files changed:
coccinelle/reallocarray.cocci [new file with mode: 0644]
src/basic/env-util.c
src/basic/prioq.c
src/basic/strbuf.c
src/basic/strv.c
src/core/service.c
src/hwdb/hwdb.c
src/libsystemd-network/network-internal.c
src/libsystemd/sd-bus/bus-message.c
src/libsystemd/sd-bus/bus-socket.c
src/libudev/libudev-list.c
src/network/networkd-network.c
src/shared/install.c
src/shared/uid-range.c
src/udev/udev-rules.c
src/udev/udevadm-hwdb.c