]> git.ipfire.org Git - thirdparty/vectorscan.git/commit
Fix noodle sve2 off by one (#313)
authorypicchi-arm <67330153+ypicchi-arm@users.noreply.github.com>
Thu, 29 Aug 2024 10:49:29 +0000 (11:49 +0100)
committerGitHub <noreply@github.com>
Thu, 29 Aug 2024 10:49:29 +0000 (13:49 +0300)
commit7146d5e2255802531471d000bf0130723a200015
treeb819424014f0e05908405eb2bfd6613dc25f34f3
parent1c1ff6f2792929a79532b22c162ab42f8c89740c
Fix noodle sve2 off by one (#313)

* Revert "Fix noodle SVE2 off by one bug"

This patch was fixing the bug when it happens at the end of the buffer
but it wasn't fixing it when we do scanDoubleOnce before the main loop

The next patch fix this bug for both case instead

This reverts commit 48dd0e5ff0bc1995d62461c92cfb76d44d1d0105.

* Fix noodle spurious match with \0 chars for SVE2

When sve2's noodle process a non full vector (before the main loop or
at the end of it), a fake \0 was being parsed, trigerring a match for
pattern that ended with \0. This patch fix this.

Signed-off-by: Yoan Picchi <yoan.picchi@arm.com>
---------

Signed-off-by: Yoan Picchi <yoan.picchi@arm.com>
src/hwlm/noodle_engine_sve.hpp