]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Use runtime Hyperscan version instead of compile-time version for database...
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 3 Nov 2025 11:05:31 +0000 (11:05 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 3 Nov 2025 11:05:31 +0000 (11:05 +0000)
commit6e49e901ad3da152afb3f8d591cf10486edf2534
tree7bb1eb9927e60cbe32a105c67139d44b14086adb
parent7c1e555a3fbb42e1a6f37a1f0300ea864e4076cd
[Fix] Use runtime Hyperscan version instead of compile-time version for database validation

The issue was that the database version check used HS_DB_VERSION macro defined
in headers at compile time, while Hyperscan .so library writes the version from
its own headers. When the system updates the Hyperscan package but Rspamd isn't
recompiled, this causes a version mismatch and database validation fails.

The fix calls hs_version() at runtime to get the actual library version and uses
that for validation instead. This ensures compatibility when the Hyperscan library
is updated independently.
src/libserver/hyperscan_tools.cxx