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:45:51 +0000 (16:45 -0400)
commit53a5c2099f5552403166f069e6642dc9e083bb7f
treec6b3a49fafaf2a41440ae21859067474b7fda88a
parent0d0386e0c99db3d2c0ae6a725d70db5075a75c73
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.026758 seconds and 4 git commands to generate.