From 4efe037b99629804b658b7f50c020c9f27904ceb Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 6 Jun 2018 17:32:26 -0400 Subject: [PATCH] Fix: filter interpreter: use LTTNG_SIZE_MAX Own macro required for older kernels. Signed-off-by: Mathieu Desnoyers --- lttng-filter-interpreter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lttng-filter-interpreter.c b/lttng-filter-interpreter.c index 7263ce96..637dd68f 100644 --- a/lttng-filter-interpreter.c +++ b/lttng-filter-interpreter.c @@ -572,7 +572,7 @@ static int dynamic_load_field(struct estack_entry *stack_top) ret = -EINVAL; goto end; } - stack_top->u.s.seq_len = SIZE_MAX; + stack_top->u.s.seq_len = LTTNG_SIZE_MAX; stack_top->u.s.literal_type = ESTACK_STRING_LITERAL_TYPE_NONE; break; @@ -1559,7 +1559,7 @@ uint64_t lttng_filter_interpret_bytecode(void *filter_data, ret = -EINVAL; goto end; } - estack_ax(stack, top)->u.s.seq_len = SIZE_MAX; + estack_ax(stack, top)->u.s.seq_len = LTTNG_SIZE_MAX; estack_ax(stack, top)->u.s.literal_type = ESTACK_STRING_LITERAL_TYPE_NONE; next_pc += sizeof(struct load_op); -- 2.34.1