From: Jérémie Galarneau Date: Wed, 11 Sep 2019 00:26:47 +0000 (-0400) Subject: Fix: report bytecode_push failure when pushing symbol X-Git-Tag: v2.11.0-rc4~57 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5fdbff7bbb9db5981e2316a9293d65765f2b1d61;p=lttng-tools.git Fix: report bytecode_push failure when pushing symbol The last use of bytecode_push's return value is not checked in visit_node_load_expression_legacy(). Signed-off-by: Jérémie Galarneau --- diff --git a/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c b/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c index 74ec1a715..0e778562f 100644 --- a/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c +++ b/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c @@ -295,6 +295,9 @@ int visit_node_load_expression_legacy(struct filter_parser_ctx *ctx, } ret = bytecode_push(&ctx->bytecode_reloc, symbol, 1, strlen(symbol) + 1); + if (ret) { + goto end; + } ret = 1; /* legacy */ end: free(insn);