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

index 92455c80a554766830dda045ccd5f73d76dc5b09..acac7ce7fad52228d1488bddf8a5c4d378fd4189 100644 (file)
@@ -507,6 +507,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.026076 seconds and 4 git commands to generate.