Warn that wildcards must be used as the last character in a string
[lttng-tools.git] / src / lib / lttng-ctl / lttng-ctl.c
index 536d41baa2bc4848b334405afa598a210dc5422e..b9dc1efb095de163ff3d4ca50bfba28ed6596378 100644 (file)
@@ -825,6 +825,12 @@ static int generate_filter(char *filter_expression,
                ret = -LTTNG_ERR_FILTER_INVAL;
                goto parse_error;
        }
+       /* Validate strings used as literals in the expression */
+       ret = filter_visitor_ir_validate_string(ctx);
+       if (ret) {
+               ret = -LTTNG_ERR_FILTER_INVAL;
+               goto parse_error;
+       }
        dbg_printf("done\n");
 
        dbg_printf("Generating bytecode... ");
This page took 0.02479 seconds and 5 git commands to generate.