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>
Mon, 18 Feb 2019 13:54:04 +0000 (13:54 +0000)
commitb703e9ea66069cb4808e17b134ca50f7925f0e40
treea3e10758c7ab1f77602a90f11f516185e0cc8847
parenta9de73bcaa7987943ead8f535b173e3aa61d5c5b
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