]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] lua_hs_cache: add defensive checks for zstd_decompress
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 29 Jan 2026 16:53:59 +0000 (16:53 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 29 Jan 2026 16:53:59 +0000 (16:53 +0000)
commit2dbc6d32b8658ac7bb97b77cee1f0968f5cef11d
treee817cef6c82312f27f8b43273ef4e8526c474039
parentd051d75b382c87db059583a029313ddeac97c27a
[Fix] lua_hs_cache: add defensive checks for zstd_decompress

Add type checking before decompression to catch unexpected data types
from Redis. Wrap zstd_decompress in pcall to gracefully handle any
errors and provide detailed diagnostic logging when failures occur.
lualib/lua_hs_cache.lua