From: Jérémie Galarneau Date: Tue, 8 Mar 2016 18:04:07 +0000 (-0500) Subject: Fix: missing dereference when computing extended info position X-Git-Tag: v2.8.0-rc1~102 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ab4aa6126ca21620b1bba81053921aa1bfe57701;p=lttng-tools.git Fix: missing dereference when computing extended info position Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index 33ecff062..f35043fa4 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -606,7 +606,7 @@ static int list_lttng_kernel_events(char *channel_name, goto error; } - extended_at = ((uint8_t *) events) + + extended_at = ((void *) *events) + nb_event * sizeof(struct lttng_event); /* Kernel channels */