GNOME Bugzilla – Bug 170812
Two blank layers not saved correctly into a winicon
Last modified: 2008-01-15 12:50:22 UTC
From Debian bug report http://bugs.debian.org/300140 1. Open the attached .xcf file in gimp. 2. Save it as a .ico with the default settings. Already there are a few warnings: ** (winicon:29273): CRITICAL **: ico_create_palette: assertion `cmap != NULL' failed ** (winicon:29273): CRITICAL **: ico_create_palette: assertion `cmap != NULL' failed 3. Now try opening the saved .ico file. The winicon plugin crashes: GLib-ERROR **: gmem.c:158: failed to allocate 4294967292 bytes aborting... (gimp:29188): Gimp-Plug-In-WARNING **: gimp: plug_in_flush(): error: Broken pipe
The basic problem is happening around line 870 of winicon/icosave.c -- an attempt to convert a temporary image to indexed mode is producing a result with a NULL colormap. I am wondering whether this might turn out, by a remarkable coincidence, to be at root the same problem described in bug #170825.
Fixed in both branches: 2005-03-21 Sven Neumann <sven@gimp.org> * plug-ins/winicon/icosave.c (ico_create_palette): fixed parameter check, NULL is valid for an empty palette. Fixes bug #170812.