]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Prevent infinite loop in split_networks_into_chunks() 5757/head
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 20 Nov 2025 12:32:33 +0000 (12:32 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 20 Nov 2025 12:32:33 +0000 (12:32 +0000)
commitdbd475241cea95ac942cb58328da438a287e7c0f
treeb8f27e14797b4fdc72555c111daf2a62c10c34bd
parent030af71ef52ee916bafa160a50129a85bf7ce460
[Fix] Prevent infinite loop in split_networks_into_chunks()

If a single IP network entry exceeds max_record_length (450 chars) on its own,
the code would enter an infinite loop. Added validation to check if individual
items can fit before attempting to add them to chunks. Items that are too large
are now skipped with a warning message.
lualib/rspamadm/dns_tool.lua