Imager release history. Older releases can be found in Changes.old
+Imager 0.70 - unreleased
+===========
+
+Bug fixes:
+
+ - release image row and comments memory on all error returns in gif
+ reader
+
+ - handle zero length extensions, previously this would cause a null
+ pointer dereference
+ Thanks to Krzysztof WojtaÅ for the test data and fix for this.
+
Imager 0.69 - 08 Sep 2009
===========
testimg/winrgb8.bmp 8-bit bmp base
testimg/winrgb8off.bmp 8-bit bmp with image data offset from header
testimg/zerotype.jpg Image with a zero type entry in the EXIF data
+testimg/zerocomm.gif Image with a zero-length comment extension
tga.c Reading and writing Targa files
tiff.c
trans2.c
myfree(comment);
return NULL;
}
+ /* possibly this should be an error, but "be liberal in what you accept" */
+ if (!Extension)
+ break;
if (ExtCode == 0xF9) {
got_gce = 1;
if (Extension[1] & 1)
i_has_format("gif")
or plan skip_all => "no gif support";
-plan tests => 145;
+plan tests => 146;
my $green=i_color_new(0,255,0,255);
my $blue=i_color_new(0,0,255,255);
is_color3($colors[8], 0, 0x33, 0x66, "9th should be 003366");
}
+{ # a zero length extension could make read_/read_multi crash
+ my ($im) = Imager->read_multi(file => "testimg/zerocomm.gif");
+ ok($im, "read image with zero-length extension");
+}
+
sub test_readgif_cb {
my ($size) = @_;