Crash when opening article with layered attachments
Submitted by Dominique Dumont
Assigned to pan..@..e.bugs
Link to original bug (#745357)
Description
Hello
A Debian user reported [1] the following issue with Pan 0.139 on Debian amd64:
I am having an issue with Pan, where it is crashing when I try to open certain articles.
All spam reports received get posted to a newsgroup, as-is. It seems that, in certain cases, opening those posts causes Pan to crash. The particular article causing the crash has multiple multipart MIME layers:
- The article's content-type is multipart/mixed, which contains a single message/rfc822 email.
- That email's MIME type is also multipart/mixed, and contains a single multipart/alternative.
- The multipart/alternative contains two items: A text/plain and a third multipart/mixed.
- The text/plain is an email as plain (quoted-printable) text.
- The innermost multipart/mixed contains a text/html part (the email as HTML) and a PDF (as an inline attachment).
I think something about that post, and all of its MIME layers, is crashing Pan.
I am attaching two items. First is the post in question that is crashing Pan [2].
Second is the output of running gdb --args pan --debug
[3], showing Pan's debug
messages and the crash backtrace.
Let me know if you need anything else!
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=779364
Here are the attachments, also available in the bug report above: [2] https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=BAY0-XMR-011KsqKTDH01a1f0e8%40BAY0-XMR-011.phx.gbl.msg;att=1;bug=779364 [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=pan_debug_backtrace.txt;att=2;bug=779364