When I open a mail with a malformed PNG attached it will crash claws-mail. This is what the console output says: (claws-mail:11865): Claws-Mail-WARNING **: Failed to load image '/home/hanno/.claws-mail/mimetmp/00000007.2670-sample.png': Fatal error in PNG image file: Read Error (claws-mail:11865): Claws-Mail-WARNING **: Can't load the image. ** GdkPixbuf:ERROR:/var/tmp/portage/x11-libs/gdk-pixbuf-2.30.8/work/gdk-pixbuf-2.30.8/gdk-pixbuf/gdk-pixbuf-animation.c:250:gdk_pixbuf_animation_new_from_file: assertion failed: (animation) Looks to me as first claws detects that the PNG has errors, however it will still try to open it via gdk-pixbuf and there the crash happens. Steps to reproduce: * Take attached PNG image, send a mail to yourself with file attached * Open mail, click on PNG attachment
Created attachment 1447 [details] malformed png file
> gdk_pixbuf_animation_new_from_file: assertion failed: (animation) animation = gdk_pixbuf_animation_new_from_file(imgfile, &error); gdk-pixbuf should not crash upon trying to detect the file contents. The two args given to gdk_pixbuf_animation_new_from_file() are still valid, especially the "imgfile" file name ptr, and it crashes later in an assertion: gdk-pixbuf-animation.c 247 248 if (success) { 249 /* If there was no error, there must be an anima tion that was successfully loaded */ 250 g_assert (animation); 251 } else { 252 if (animation) {
maybe this is this? https://bugzilla.gnome.org/show_bug.cgi?id=695228 Seems a fix was committed over a year ago but it wasn't backported to the stable release.
Sorry, I was wrong. The upstream fix seems to be applied already on my version, so this is probably another issue. Will try to create a small testcase.
closing this, as its not a Claws Mail bug.
FYI, reported to gdk-pixbuf upstream: https://bugzilla.gnome.org/show_bug.cgi?id=739785