]> 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)
commit5145b6d2abfe3e2253b5abc9f29af50ea4d44920
treeb819424014f0e05908405eb2bfd6613dc25f34f3
parentde15179c57f0775f6f226c60740f3e816d1da040
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