Fix: callstack: NULL pointer dereference: length field also need fdata
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 30 Jun 2020 14:29:19 +0000 (10:29 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 30 Jun 2020 16:53:31 +0000 (12:53 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/lttng-context-callstack.c

index 6b75772e4bec21e6333d4ab72bda264715619120..b0f7a2fee5a1c7ed0234c57620bf67d965e9f890 100644 (file)
@@ -146,6 +146,7 @@ int __lttng_add_callstack_generic(struct lttng_ctx **ctx,
        field->type.u.integer.encoding = lttng_encode_none;
        length_field->get_size_arg = lttng_callstack_length_get_size;
        length_field->record = lttng_callstack_length_record;
+       length_field->priv = fdata;
 
        field = &sequence_field->event_field;
        field->name = ctx_name;
This page took 0.027975 seconds and 4 git commands to generate.