From: Jérémie Galarneau Date: Thu, 12 Sep 2019 14:17:41 +0000 (-0400) Subject: lttng: fix: potential 0-length allocation in pid list parsing X-Git-Tag: v2.12.0-rc1~393 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=dc1c9a44fba1a368c283186e531c217206f5e816;hp=dc1c9a44fba1a368c283186e531c217206f5e816;p=lttng-tools.git lttng: fix: potential 0-length allocation in pid list parsing Check that count is > 0 before allocating pid list. This would only happen after a prior error, but check it anyway. Signed-off-by: Jérémie Galarneau ---