]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Feature] Unified hyperscan cache format for multipattern
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 4 Jan 2026 09:15:12 +0000 (09:15 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 4 Jan 2026 09:15:12 +0000 (09:15 +0000)
commit663a5f080c2aff454379a5e3eb46f097bb9b0873
treedea14f07ca6fa8af27265d79040f63067a939906
parent727f5b03653b0e3e99801ffaa9be2ff0add9ee2b
[Feature] Unified hyperscan cache format for multipattern

Add C helper functions for serializing/deserializing hyperscan databases
with the unified format (magic, platform, CRC). Migrate multipattern from
raw .hsmp files to the unified .hs format compatible with re_cache.

- Add rspamd_hyperscan_serialize_with_header() and load_from_header()
- Update multipattern to use unified format with platform validation
- Fix CRC calculation in Lua bindings to match re_cache format
src/libserver/hyperscan_tools.cxx
src/libserver/hyperscan_tools.h
src/libutil/multipattern.c
src/lua/lua_hyperscan.cxx