From: Charlie Brej Date: Tue, 11 Aug 2009 15:47:37 +0000 (+0100) Subject: [image] Supply correct width and height limits to interpolate X-Git-Tag: 0.7.0^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25f5ddeb0553ff0a1009065fb22763e1b45d653a;p=thirdparty%2Fplymouth.git [image] Supply correct width and height limits to interpolate The supplied width and height were for the new rather than the old image so some reads would access pixels beyond the edge of the image. --- diff --git a/src/libplybootsplash/ply-image.c b/src/libplybootsplash/ply-image.c index b0801d09..32e033c4 100644 --- a/src/libplybootsplash/ply-image.c +++ b/src/libplybootsplash/ply-image.c @@ -352,7 +352,7 @@ ply_image_resize (ply_image_t *image, { old_x = x * scale_x; new_image->layout.as_pixels[x + y * width] = - ply_image_interpolate (image, width, height, old_x, old_y); + ply_image_interpolate (image, old_width, old_height, old_x, old_y); } } return new_image;