]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] message: Add NULL check for mp->children in alternative detection
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 5 Feb 2026 09:17:47 +0000 (09:17 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 5 Feb 2026 09:17:47 +0000 (09:17 +0000)
commit305a25d2698b3f28be690daee39aab16463c296e
treed74561c8092b4a435f8d3f05694c1e7928739c44
parent3d17558466abe24bcd92a16582c892a07589e0b8
[Fix] message: Add NULL check for mp->children in alternative detection

The multipart children array can be NULL in some edge cases. Add NULL
checks before accessing mp->children->len to prevent segfault in
rspamd_mime_part_find_text_in_subtree() and related code paths.
src/libmime/message.c