Fixes: 5f7779c5265d ("Fix: bytecode linker: validate event and field array/sequence encoding")
Fixes: #1304
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I9b5e3df5415d56420365997ce289be7e02a0140e
{
const struct lttng_basic_type *elem_type = &field->type.u.array.elem_type;
{
const struct lttng_basic_type *elem_type = &field->type.u.array.elem_type;
- if (elem_type != atype_integer || elem_type->u.basic.integer.encoding == lttng_encode_none)
+ if (elem_type->atype != atype_integer || elem_type->u.basic.integer.encoding == lttng_encode_none)
return -EINVAL;
if (field->user)
op->op = FILTER_OP_LOAD_FIELD_REF_USER_SEQUENCE;
return -EINVAL;
if (field->user)
op->op = FILTER_OP_LOAD_FIELD_REF_USER_SEQUENCE;
{
const struct lttng_basic_type *elem_type = &field->type.u.sequence.elem_type;
{
const struct lttng_basic_type *elem_type = &field->type.u.sequence.elem_type;
- if (elem_type != atype_integer || elem_type->u.basic.integer.encoding == lttng_encode_none)
+ if (elem_type->atype != atype_integer || elem_type->u.basic.integer.encoding == lttng_encode_none)
return -EINVAL;
if (field->user)
op->op = FILTER_OP_LOAD_FIELD_REF_USER_SEQUENCE;
return -EINVAL;
if (field->user)
op->op = FILTER_OP_LOAD_FIELD_REF_USER_SEQUENCE;
{
const struct lttng_basic_type *elem_type = &ctx_field->event_field.type.u.array.elem_type;
{
const struct lttng_basic_type *elem_type = &ctx_field->event_field.type.u.array.elem_type;
- if (elem_type != atype_integer || elem_type->u.basic.integer.encoding == lttng_encode_none)
+ if (elem_type->atype != atype_integer || elem_type->u.basic.integer.encoding == lttng_encode_none)
return -EINVAL;
BUG_ON(ctx_field->event_field.user);
op->op = FILTER_OP_GET_CONTEXT_REF_STRING;
return -EINVAL;
BUG_ON(ctx_field->event_field.user);
op->op = FILTER_OP_GET_CONTEXT_REF_STRING;
{
const struct lttng_basic_type *elem_type = &ctx_field->event_field.type.u.sequence.elem_type;
{
const struct lttng_basic_type *elem_type = &ctx_field->event_field.type.u.sequence.elem_type;
- if (elem_type != atype_integer || elem_type->u.basic.integer.encoding == lttng_encode_none)
+ if (elem_type->atype != atype_integer || elem_type->u.basic.integer.encoding == lttng_encode_none)
return -EINVAL;
BUG_ON(ctx_field->event_field.user);
op->op = FILTER_OP_GET_CONTEXT_REF_STRING;
return -EINVAL;
BUG_ON(ctx_field->event_field.user);
op->op = FILTER_OP_GET_CONTEXT_REF_STRING;