After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 520928 - Segfault on message processing.
Segfault on message processing.
Status: RESOLVED FIXED
Product: gmime
Classification: Other
Component: general
2.2.x
Other Linux
: Normal major
: ---
Assigned To: Jeffrey Stedfast
Jeffrey Stedfast
Depends on:
Blocks:
 
 
Reported: 2008-03-07 08:40 UTC by Pawel Salek
Modified: 2008-03-10 22:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test program (10.48 KB, text/plain)
2008-03-07 08:41 UTC, Pawel Salek
Details
test.msg (887 bytes, text/plain)
2008-03-07 08:42 UTC, Pawel Salek
Details
gmime_test.c (1.67 KB, text/plain)
2008-03-09 21:27 UTC, Pawel Salek
Details

Description Pawel Salek 2008-03-07 08:40:25 UTC
Simple test program that uses gmime crashes when parsing attached message. The key part is:

---559023410-162216788-1204718211=:2947
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

---559023410-162216788-1204718211=:2947
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=acene_5.mol

That is just one empty line between first content-type and the boundary "---5..." - when I add one extra line, the crash is gone.
Comment 1 Pawel Salek 2008-03-07 08:41:52 UTC
Created attachment 106759 [details]
Test program
Comment 2 Pawel Salek 2008-03-07 08:42:27 UTC
Created attachment 106760 [details]
test.msg
Comment 3 Jeffrey Stedfast 2008-03-08 01:03:46 UTC
this seems to work with svn (which I think is unchanged from 2.2.17)

can you confirm?
Comment 4 Pawel Salek 2008-03-09 21:27:36 UTC
Created attachment 106930 [details]
gmime_test.c

The bug is there - I have attached a wrong test program previously. I attach the right test program and obsolete att 106759
Comment 5 Jeffrey Stedfast 2008-03-10 22:37:31 UTC
ok, fixed in svn, revision 1224