Fix: bytecode validator: oops during validation of immediate string
[lttng-modules.git] / include / lttng / lttng-bytecode.h
index 37c0e8a04fd9700cf881c2bd566c47bb966e2611..f104b0ebfdf0ff4043eb82496d4cf216f5052565 100644 (file)
@@ -42,7 +42,7 @@ struct bytecode_runtime {
        size_t data_alloc_len;
        char *data;
        uint16_t len;
-       char code[0];
+       char code[];
 };
 
 enum entry_type {
@@ -292,6 +292,7 @@ const char *lttng_bytecode_print_op(enum bytecode_op op);
 
 void lttng_bytecode_sync_state(struct lttng_kernel_bytecode_runtime *runtime);
 int lttng_bytecode_validate(struct bytecode_runtime *bytecode);
+int lttng_bytecode_validate_load(struct bytecode_runtime *bytecode);
 int lttng_bytecode_specialize(const struct lttng_kernel_event_desc *event_desc,
                struct bytecode_runtime *bytecode);
 
This page took 0.023159 seconds and 4 git commands to generate.