From: Mathieu Desnoyers Date: Thu, 7 Jun 2018 16:11:03 +0000 (-0400) Subject: Fix: lttng filter validator ERANGE error handling X-Git-Tag: v2.11.0-rc1~6 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=90732639ea0afb22d3028219adf677aa0d4caa41;p=lttng-ust.git Fix: lttng filter validator ERANGE error handling Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust/lttng-filter-validator.c b/liblttng-ust/lttng-filter-validator.c index 92455c80..acac7ce7 100644 --- a/liblttng-ust/lttng-filter-validator.c +++ b/liblttng-ust/lttng-filter-validator.c @@ -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;