]> git.ipfire.org Git - thirdparty/vectorscan.git/commit
hs_valid_platform: Fix check for SSE4.2 (#310)
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 22 Aug 2024 07:34:05 +0000 (08:34 +0100)
committerGitHub <noreply@github.com>
Thu, 22 Aug 2024 07:34:05 +0000 (10:34 +0300)
commit1c1ff6f2792929a79532b22c162ab42f8c89740c
tree33ba6c7034ed0babddfb57f861c1fd1ad2bd0264
parentd05f95d65f3359aceb48e7f0bd5814bde3534e26
hs_valid_platform: Fix check for SSE4.2 (#310)

Vectorscan requires SSE4.2 as a minimum on x86_64. For Hyperscan this
used to be SSSE3.

Applications that use the library call hs_valid_platform() to check if
the CPU fulfils this minimum requirement. However, when Vectorscan
upgraded to SSE4.2, the check was not updated. This leads to the library
trying to execute instructions that are not supported, resulting in the
application to crash.

This might not have been noticed as the CPUs that do not support SSE4.2
are rather old and unlikely to run any load where performance is an
issue. However, I believe that the library should not let the
application crash.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/hs_valid_platform.c