GNOME Bugzilla – Bug 581461
gif loader fails if write it consumes less than 13 bytes at start
Last modified: 2014-10-24 11:50:21 UTC
While loading image in gif format using gdk_pixbuf_loader_write(), the second call of this function returns FALSE if size of the first portion of passed data is shorter than 13 bytes. This bug appears only when one uses the loader created with gdk_pixbuf_loader_new_with_type("gif", NULL). If one uses the loader created with gdk_pixbuf_loader_new(), everything becomes correct.
Created attachment 134021 [details] test for loading image via gdk_pixbuf_loader_write() This program simplify testing progressive image loading.
Created attachment 134022 [details] image for test
Reproduced with gdk-pixbuf 2.31.
commit 0da968fd5f1c5f8b05f4549be6bf77fe2f1daa62 Author: Bastien Nocera <hadess@hadess.net> Date: Fri Oct 24 13:48:17 2014 +0200 tests: Add test case for short GIF writes Based on the test program from Andrey Tsyvarev <tsyvarev@ispras.ru> https://bugzilla.gnome.org/show_bug.cgi?id=581461 commit 692b0ceaf032be2cd2558396c2b74a64869048d5 Author: Bastien Nocera <hadess@hadess.net> Date: Fri Oct 24 12:34:22 2014 +0200 gif: Fix loading GIF if first write is smaller than 13 bytes https://bugzilla.gnome.org/show_bug.cgi?id=581461