]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Resolve composite references in inverted index for fast path
authorVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 13 Feb 2026 07:37:27 +0000 (07:37 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 13 Feb 2026 07:37:27 +0000 (07:37 +0000)
commiteffbda8327cb3930a13699624ffb8e0beea1a964
tree115d82b3594a35064219751b30acd3b6317ec8ec
parent90582ebfb89e337f44c92024622f79ccd2b0ce44
[Fix] Resolve composite references in inverted index for fast path

When the inverted index fast path collects potentially active composites,
it scans symbols already in the scan result. Composite symbols are not
yet in the scan result at that point, so composites referencing other
composites as atoms were never activated and silently failed to fire.

Fix by resolving composite references at index build time: recursively
collect leaf (non-composite) atoms and propagate dependent composites
to those atoms' index entries. Also refactor atom name parsing into a
shared helper to reduce duplication.
src/libserver/composites/composites_manager.cxx