projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: filter bytecode specializer stack leak
[lttng-ust.git]
/
liblttng-ust
/
lttng-filter-specialize.c
diff --git
a/liblttng-ust/lttng-filter-specialize.c
b/liblttng-ust/lttng-filter-specialize.c
index b422f50863a5f4608405c5c41ca5ed32faf1f61f..66e3db6f7228b379fc9fe0d584f05465d483b404 100644
(file)
--- a/
liblttng-ust/lttng-filter-specialize.c
+++ b/
liblttng-ust/lttng-filter-specialize.c
@@
-396,6
+396,12
@@
int lttng_filter_specialize_bytecode(struct bytecode_runtime *bytecode)
case FILTER_OP_AND:
case FILTER_OP_OR:
{
case FILTER_OP_AND:
case FILTER_OP_OR:
{
+ /* Continue to next instruction */
+ /* Pop 1 when jump not taken */
+ if (vstack_pop(stack)) {
+ ret = -EINVAL;
+ goto end;
+ }
next_pc += sizeof(struct logical_op);
break;
}
next_pc += sizeof(struct logical_op);
break;
}
This page took
0.02687 seconds
and
4
git commands to generate.