lttng: fix: potential 0-length allocation in pid list parsing
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 12 Sep 2019 14:17:41 +0000 (10:17 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 19 Sep 2019 19:31:48 +0000 (15:31 -0400)
commit04054b432f3009b65a75016be2ede80c3c31e3b1
tree844347408622ff0dc034904165a1a5cf6d93a227
parentf127b35fc849f52afdaffc0c0cb83e174d908d7e
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 <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/track-untrack.c
This page took 0.024601 seconds and 4 git commands to generate.