Fix: filter interpreter: use LTTNG_SIZE_MAX
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 6 Jun 2018 21:32:26 +0000 (17:32 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 6 Jun 2018 21:32:26 +0000 (17:32 -0400)
Own macro required for older kernels.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-filter-interpreter.c

index 7263ce9636f6ccb3630babe5b348d93954c6ad3f..637dd68fb27c90d41144ebbead8cbbaf5e2d37bb 100644 (file)
@@ -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);
This page took 0.028875 seconds and 4 git commands to generate.