From 25f5ddeb0553ff0a1009065fb22763e1b45d653a Mon Sep 17 00:00:00 2001 From: Charlie Brej Date: Tue, 11 Aug 2009 16:47:37 +0100 Subject: [PATCH] [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. --- src/libplybootsplash/ply-image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;