[Freeassociation-devel] Crash using Inline Attachments
Allen Winter
winter at kde.org
Thu Nov 6 14:37:28 PST 2008
On Thursday 06 November 2008 4:22:50 pm Allen Winter wrote:
> For years now we have been getting KOrganizer bug reports about crashes
> when using inline attachments.
>
> I'd like to finally fix that bug. Investigating today I found that the crash is in libical.
> icalattach_new_from_data() and icalattach_unref()
>
> Before I post a patch, I need to know if anyone understands what the
> free_fn_data argument to icalattach_new_from_data() is used for.
>
> Actually, I'd like to eliminate the free_fn and free_fn_data arguments
> because I don't see them being used for anything.
>
> ./src/libical/icalvalue.c:icalvalue_new_from_string_with_error()
> is the only place in all of libical that uses icalattach_new_from_data(),
> but it passes 0 for both free_fn and free_fn_data.
>
> So can I remove those 2 args?
> Other comments?
>
Attached is one possibility for a patch that stops the inline attachment crashes.
Please let me know what you think and if I can commit.
-Allen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: icalattach.c.diff
Type: text/x-patch
Size: 1186 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/libical-devel/attachments/20081106/26a64ab4/attachment.bin>
More information about the libical-devel
mailing list