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, 26 Sep 2019 19:29:51 +0000 (15:29 -0400)
commitdb548fb18a53ed7e3d56994241c565202ac61f1a
tree07fdcc4012649e061c2c405c9ce6a8032107c859
parentb57207709dcd64dfab6186f83961aba20898c529
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.02461 seconds and 4 git commands to generate.