- implement getscanline(), setscanline() and getsamples() methods.
These are low level methods for fast access to image data, based on
existing C functions that Imager uses internally.
+- limit limits.c to C89
+- the gif tests weren't skipping enough when there was no gif support
=================================================================
int
i_int_check_image_file_limits(int width, int height, int channels, int sample_size) {
+ int bytes;
i_clear_error();
if (width <= 0) {
We don't protect it under max_bytes since we always want to check
for overflow.
*/
- int bytes = width * height * channels * sample_size;
+ bytes = width * height * channels * sample_size;
if (bytes / width != height * channels * sample_size
|| bytes / height != width * channels * sample_size) {
i_push_error(0, "file size limit - integer overflow calculating storage");
$im = Imager->new(xsize=>2, ysize=>2);
ok(!$im->write(file=>"testout/nogif.gif"), "should fail to write gif");
is($im->errstr, 'format not supported', "check no gif message");
- skip("no gif support", 65);
+ skip("no gif support", 80);
}
open(FH,">testout/t105.gif") || die "Cannot open testout/t105.gif\n";
binmode(FH);