]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Add logging, preallocation and hash mixing to task registry
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 22 Dec 2025 11:25:49 +0000 (11:25 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 22 Dec 2025 11:25:49 +0000 (11:25 +0000)
commit2b91ebefa54060c28f2953058009b1eac005ddb0
treed7c7359a34cfab398a79d029f2812954ebd57073
parent708d386f4c09a38470ad0c03a55dec5d6f081bdf
[Fix] Add logging, preallocation and hash mixing to task registry

- Log error when detecting use-after-free attempt on task pointer
- Preallocate task set to 16 elements to reduce early rehashing
- Mix pointer bits using multiplicative hash for better distribution
src/libserver/task.c
src/lua/lua_task.c