]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Test] Add test cases for MIME_HTML_ONLY with malformed multipart
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 5 Feb 2026 09:23:54 +0000 (09:23 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 5 Feb 2026 09:23:54 +0000 (09:23 +0000)
commitbf77897eca1a0edd0bbd10d889b6ebebf49a7307
treeca4ecacc6d5ac3b8186ca16c0b217a642bb78137
parent305a25d2698b3f28be690daee39aab16463c296e
[Test] Add test cases for MIME_HTML_ONLY with malformed multipart

Add tests for edge cases that caused a segfault when multipart/related
has no children or contains only non-text content:

- alternative-nested-rfc822.eml: multipart/alternative with HTML and
  related containing only image (no text), plus nested message/rfc822
- alternative-empty-related.eml: multipart/alternative with malformed
  related that has no proper MIME children

These test cases verify the NULL check fix for mp->children.
test/functional/cases/001_merged/100_general.robot
test/functional/messages/alternative-empty-related.eml [new file with mode: 0644]
test/functional/messages/alternative-nested-rfc822.eml [new file with mode: 0644]