Bug 147943

Summary: [PATCH] Content-Type header might have an empty charset specification
Product: [Applications] kmail Reporter: Marcos Dione <mdione>
Component: mimeAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: crash CC: kollix, lemma
Priority: NOR Keywords: triaged
Version: 1.9.6   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: patches crash on empty charset specification

Description Marcos Dione 2007-07-17 07:04:35 UTC
Version:           1.9.6 (using KDE KDE 3.5.6)
Installed from:    Ubuntu Packages0
OS:                Linux

I've invalid mails with an empty charset specification in the Content-Type header, like:

Content-Type: text/plain; charset=

kmail sigsegvs when reading them from a maildir mail box.
Comment 1 Marcos Dione 2007-07-17 07:07:03 UTC
Created attachment 21168 [details]
patches crash on empty charset specification

we tested this patch with the offending mails and works fine.
Comment 2 Thomas McGuire 2007-07-17 12:52:41 UTC
Thanks for the patch!

Can you please do the following:

Attach a backtrace of the crash, so I can see if there are any duplicate reports

Attach an offending mail (remove all personal info of course) so I can test it myself

Mail the patch to the KDE PIM mailinglist (kde-pim at kde dot org) for review. The core developers of KMail are not actively monitoring the bug tracker. I am also occasionally contributiong, but I don't yet have enough knowledge of KMail to review patches.
Comment 3 Michael Leupold 2009-04-05 11:00:34 UTC
I created such a test myself and it didn't crash on KMail 1.11.0. I assume it's fixed.
Comment 4 Martin Koller 2009-08-17 19:39:06 UTC
works with current svn trunk