Fix: off-by-one in sequence filter comparator
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 8 Nov 2014 17:16:41 +0000 (12:16 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 8 Nov 2014 17:29:03 +0000 (12:29 -0500)
commit35c7fa927fef4a851f5a22b78b7fe883789f2a5d
treea86941792d8966b050e5e2426fb6534792e88d47
parentdc591a148a891a1a8da4ee6e269b3970629c2996
Fix: off-by-one in sequence filter comparator

If we pass the following sequence as event input:
- field name "seqfield2"
- seq. len.: 4
- sequence array: "testA" (5 characters),

The following filters do not have the intended effect:
* 'seqfield2=="testA"'
  - expected: no match.
  - actual behavior: match.

* 'seqfield2=="test"'
  - expected: match.
  - actual behavior: no match.

This is caused by an off-by-one in the comparison with sequence length
in the filter bytecode interpreter.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/lttng-filter-interpreter.c
This page took 0.034072 seconds and 4 git commands to generate.