From: Mathieu Desnoyers Date: Sat, 8 Nov 2014 17:16:41 +0000 (-0500) Subject: Fix: off-by-one in sequence filter comparator X-Git-Tag: v2.4.3~7 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=4db6ca96415350161cce90319d647f950cd8a62e;hp=4db6ca96415350161cce90319d647f950cd8a62e;p=lttng-ust.git 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 ---