Fix: filter validator: refuse string and star glob input to bitwise operation
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 25 Nov 2020 17:58:27 +0000 (12:58 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 25 Nov 2020 17:58:27 +0000 (12:58 -0500)
The validator refuses input ax=string,bx=unknown, but accepts input
ax=unknown,bx=string. Both inputs should be refused.

The same goes for the error glob input.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/lttng-filter-validator.c

index f117eadf25a30977358ce1eb181ee195dd9ba222..9057ee8a8c19d887b874436c4bd5a5cf9ee8c568 100644 (file)
@@ -215,8 +215,6 @@ int bin_op_bitwise_check(struct vstack *stack, filter_opcode_t opcode,
                case REG_DOUBLE:
                        goto error_type;
                case REG_TYPE_UNKNOWN:
-               case REG_STRING:
-               case REG_STAR_GLOB_STRING:
                case REG_S64:
                        goto unknown;
                }
This page took 0.02779 seconds and 4 git commands to generate.