process-util: don't use overly large buffer to store process command line
authorMichal Sekletar <msekleta@redhat.com>
Tue, 22 Jan 2019 13:29:50 +0000 (14:29 +0100)
committerMartin Pitt <mpitt@debian.org>
Sun, 27 Jan 2019 21:33:07 +0000 (21:33 +0000)
commit32ae766bc63a93027bef4623dcbd65628940f4e3
tree2f76babacc8e54e16da4330ffcae9e3f09683623
parent2fd93efaf66c7c440e25f9724129caba9f28184d
process-util: don't use overly large buffer to store process command line

Allocate new string as a return value and free our "scratch pad"
buffer that is potentially much larger than needed (up to
_SC_ARG_MAX).

Fixes #11502

(cherry picked from commit eb1ec489eef8a32918bbfc56a268c9d10464584d)

Gbp-Pq: Name process-util-don-t-use-overly-large-buffer-to-store-proce.patch
src/basic/process-util.c