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:38:22 +0000 (15:38 -0400)
commitf3c5f4ac7837bb48fe0f6eb48e382455888dd0d1
tree1bdb48ee117ea70715d1fa96b7c2848d479588c8
parent8556a6776d9cb140d287b5ae65417920aaeb9504
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.025471 seconds and 4 git commands to generate.