]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] lua_redis: add defensive check in GC handler
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 29 Jan 2026 15:17:15 +0000 (15:17 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 29 Jan 2026 15:17:15 +0000 (15:17 +0000)
commite753e063c2102d920b8b2ea15f675de04b1aaa99
tree67df3647f0bc6edd1fcaf57a32a2116543be3c4f
parent097beafc7e645909577eade8b202b3b701ee8e28
[Fix] lua_redis: add defensive check in GC handler

Add validation in lua_redis_gc to check that the context pointer
appears valid before releasing. This prevents crashes when Lua GC
collects stale userdata pointing to already-freed memory.
src/lua/lua_redis.c