From: Mathieu Desnoyers Date: Thu, 7 Jun 2018 16:10:00 +0000 (-0400) Subject: Fix: lttng filter validator ERANGE error handling X-Git-Tag: v2.11.0-rc1~43 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3aeca857621bb2feec78e1b0f54d2d64603c82db;p=lttng-modules.git Fix: lttng filter validator ERANGE error handling Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-filter-validator.c b/lttng-filter-validator.c index 051db49c..a4ca7775 100644 --- a/lttng-filter-validator.c +++ b/lttng-filter-validator.c @@ -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;