[Kde-pim] KMime Gurus? wanna fix a crash please?

Volker Krause vkrause at kde.org
Tue Oct 13 10:06:23 BST 2015


On Tuesday 13 October 2015 10:49:10 Daniel Vrátil wrote:
> On Monday, October 12, 2015 1:57:38 PM CEST Allen Winter wrote:
> > If you know KMime and would like to fix a crash for me, I'd be very happy
> > and appreciative.
> > 
> > here is the crash when forwarding a message inline that has a few jpg
> > attachments. KDE/4.14 in my case.
> 
> Hi Allen,
> 
> I hit exactly the same bug when forwarding a message with attachments about
> a month ago [0] - the problem is that KMime sometimes decides to delete/re-
> create some parts of the Message, leaving caller with dangling pointers.
> 
> I talked about it with Volker, he said that there's no real easy fix for
> that other than removing this behavior from KMime, but since it's a
> behavior change, it needs to be done carefully.

There might be a possible work-around in the affected code, by copying the 
image parts rather than taking them out of the source message. Less efficient 
obviously, but it should avoid hitting this problem.

The real solution however is rather invasive, making the multipart auto-
conversion optional and explicit.

regards,
Volker

> You can work around the crash by forwarding the message as attachment - most
> sane clients will show it inline anyway.
> 
> Dan
> 
> [0] https://bugs.kde.org/show_bug.cgi?id=352799
> [1] https://phabricator.kde.org/T839
> 
> > -Allen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 173 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20151013/36750b13/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list