We were limited to 65535.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
-#define FILTER_BYTECODE_MAX_LEN 65535
+#define FILTER_BYTECODE_MAX_LEN 65536
struct lttng_ust_filter_bytecode {
uint16_t len;
uint16_t reloc_offset;
struct lttng_ust_filter_bytecode {
uint16_t len;
uint16_t reloc_offset;
return -EINVAL;
/* Check if field offset is too large for 16-bit offset */
return -EINVAL;
/* Check if field offset is too large for 16-bit offset */
- if (field_offset > FILTER_BYTECODE_MAX_LEN)
+ if (field_offset > FILTER_BYTECODE_MAX_LEN - 1)
return -EINVAL;
/* set type */
return -EINVAL;
/* set type */