Fix: accept 65536 bytes long bytecodes
[lttng-ust.git] / liblttng-ust / lttng-filter.c
index 369e73aa0ade218959ce2e9185d638be29d33c50..68a5931158140ec735fb67ccacee9a71958407bb 100644 (file)
@@ -184,7 +184,7 @@ int apply_field_reloc(struct ltt_event *event,
                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 */
This page took 0.023002 seconds and 4 git commands to generate.