Allocate temporary strings to hold dbus paths on the heap
authorRiccardo Schirone <rschiron@redhat.com>
Mon, 4 Feb 2019 13:29:28 +0000 (14:29 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 18 Feb 2019 19:07:45 +0000 (20:07 +0100)
commitf519a19bcd5afe674a9b8fc462cd77d8bad403c1
treebca989c6ae3bec3eef1a0b6ea16c7a22ad55bcc6
parent61397a60d98e368a5720b37e83f3169e3eb511c4
Allocate temporary strings to hold dbus paths on the heap

Paths are limited to BUS_PATH_SIZE_MAX but the maximum size is anyway too big
to be allocated on the stack, so let's switch to the heap where there is a
clear way to understand if the allocation fails.
src/libsystemd/sd-bus/bus-objects.c