Fixes: b82404da07 ("Fix: bytecode linker: validate event and field array/sequence encoding")
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I4a430d36ee08dc65242a5e6ca6bd0a6a689df873
{
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;
op->op = FILTER_OP_LOAD_FIELD_REF_SEQUENCE;
break;
return -EINVAL;
op->op = FILTER_OP_LOAD_FIELD_REF_SEQUENCE;
break;
{
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;
op->op = FILTER_OP_LOAD_FIELD_REF_SEQUENCE;
break;
return -EINVAL;
op->op = FILTER_OP_LOAD_FIELD_REF_SEQUENCE;
break;
{
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;
op->op = FILTER_OP_GET_CONTEXT_REF_STRING;
break;
return -EINVAL;
op->op = FILTER_OP_GET_CONTEXT_REF_STRING;
break;
{
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;
op->op = FILTER_OP_GET_CONTEXT_REF_STRING;
break;
return -EINVAL;
op->op = FILTER_OP_GET_CONTEXT_REF_STRING;
break;