GNOME Bugzilla – Bug 143252
crash when MIME component is too short
Last modified: 2004-12-22 21:47:04 UTC
Pan will crash with the following stack trace if a MIME component is too short (see example article below, following the stack trace). I've found that adding this line g_return_val_if_fail (stream->position <= stream->bound_end, -1); to the beginning of g_mime_stream_buffer_gets() will avoid the crash.
+ Trace 46923
Path: foo!bar!news.POSTED!53ab2750!not-for-mail Newsgroups: foo.bar From: foo@bar.com Subject: foo bar Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=====================_28438041==_" Message-ID: <9c8tc.922438$yC6.841163@news> Date: Wed, 26 May 2004 21:43:33 GMT --=====================_28438041==_ Content-Type: text/plain; charset="us-ascii"; format=flowed --=====================_28438041==_ Content-Type: text/plain; charset="us-ascii"; format=flowed The previous section is too short. --=====================_28438041==_--
*** This bug has been marked as a duplicate of 125051 ***