Fix: lttng filter validator ERANGE error handling
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 7 Jun 2018 16:10:00 +0000 (12:10 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 7 Jun 2018 16:10:00 +0000 (12:10 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-filter-validator.c

index 051db49c87e5f75d7ea5c525ce76fcba90ddef7a..a4ca777563fa9ca13e85281500b1f3db17de4d4f 100644 (file)
@@ -514,6 +514,7 @@ int bytecode_validate_overflow(struct bytecode_runtime *bytecode,
                if (unlikely(pc + sizeof(struct load_op) + sizeof(struct get_symbol)
                                > start_pc + bytecode->len)) {
                        ret = -ERANGE;
+                       break;
                }
                ret = validate_get_symbol(bytecode, sym);
                break;
This page took 0.027385 seconds and 4 git commands to generate.