Fix: appending unallocated data from beyond exclusion entries
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 28 May 2021 20:06:09 +0000 (16:06 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 11 Jun 2021 20:52:19 +0000 (16:52 -0400)
commit1085f5eafd7f240089e410d94cb3f8b9fa19a090
tree2ca64d136f4c0d25d848390d805c2d49067b7b50
parent8c635ee91d3f10472cffae07b957ecfffef984c8
Fix: appending unallocated data from beyond exclusion entries

Issue
=====
If an exclusion string is smaller than the `LTTNG_SYMBOL_NAME_LEN`
integer, the `lttng_dynamic_buffer_append()` call will append
unallocated data to the buffer.

Fix
===
Use the `exclusion_len` value to copy the actual exclusion and pad the
remaining bytes with zeros.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I04c6681c28e82de29791541eb490158db9e503d0
src/lib/lttng-ctl/lttng-ctl.c
This page took 0.026861 seconds and 4 git commands to generate.