]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Move binary data from KEYS to ARGV in fuzzy and neural scripts
authorVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 24 Feb 2026 14:39:49 +0000 (14:39 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 24 Feb 2026 14:39:49 +0000 (14:39 +0000)
commit404df7cb7bc10a72a2963b92a5b5a0cf0db78b21
tree25dcb9c67bdfd9d2803ac087143d42c8110f1ecf
parent30bd75dbcbf56b73010ebfd9f2f341a9e16d7be2
[Fix] Move binary data from KEYS to ARGV in fuzzy and neural scripts

Same expand_keys corruption issue as the Bayes fix: binary data passed
as KEYS gets template-expanded, stripping 0x24 bytes.

fuzzy_update: move operation parameters and raw digest to ARGV, keep
only hash_key, count_key, and shingle keys as KEYS.

neural_save_unlock: move compressed ANN weights, PCA matrix, and all
non-key parameters to ARGV, keep only Redis key names as KEYS.
lualib/lua_fuzzy_redis.lua
lualib/plugins/neural.lua
lualib/redis_scripts/fuzzy_update.lua
lualib/redis_scripts/neural_save_unlock.lua