[lttng-dev] [PATCH lttng-tools v3] Fix: syscall_table_nb_entry invalid value when no syscalls TPs are defined

Colin Ian King colin.king at canonical.com
Tue Mar 21 09:31:20 UTC 2017


>fscanf on an empty file returns directly without assigning value to
>'index' leading to assigning the value of an uninitialized variable to
>syscall_table_nb_entry. This can result in memory allocation problems
>when listing syscalls on 'lttng list --kernel --syscall'[1][2].
>
>Fixes #1091
>
>[1] https://bugs.lttng.org/issues/1091
>[2] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1671063/
>
>Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien at efficios.com>

Thanks Jonathan.

Tested-by: Colin Ian King <colin.king at canonical.com>


More information about the lttng-dev mailing list