projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Warn that wildcards must be used as the last character in a string
[lttng-tools.git]
/
src
/
lib
/
lttng-ctl
/
lttng-ctl.c
diff --git
a/src/lib/lttng-ctl/lttng-ctl.c
b/src/lib/lttng-ctl/lttng-ctl.c
index 536d41baa2bc4848b334405afa598a210dc5422e..b9dc1efb095de163ff3d4ca50bfba28ed6596378 100644
(file)
--- a/
src/lib/lttng-ctl/lttng-ctl.c
+++ b/
src/lib/lttng-ctl/lttng-ctl.c
@@
-825,6
+825,12
@@
static int generate_filter(char *filter_expression,
ret = -LTTNG_ERR_FILTER_INVAL;
goto parse_error;
}
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... ");
dbg_printf("done\n");
dbg_printf("Generating bytecode... ");
This page took
0.025957 seconds
and
4
git commands to generate.