From 96226455142018927a96c676980a90206d60714e Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Thu, 20 Aug 2009 16:41:11 +0200 Subject: Clip vector blending: do not copy last row padding Do not copy the padding on the last row into the new buffer since we cannot rely on the padding actually existing; might fix a segfault in some obscure cases. --- libass/ass_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libass/ass_render.c b/libass/ass_render.c index 253d409..bcb3f95 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -592,7 +592,7 @@ static void blend_vector_clip(ASS_Renderer *render_priv, free_list_add(render_priv, nbuffer); // Blend together - memcpy(nbuffer, abuffer, as * ah); + memcpy(nbuffer, abuffer, as * (ah - 1) + aw); for (y = 0; y < h; y++) for (x = 0; x < w; x++) { apos = (atop + y) * as + aleft + x; -- cgit v1.2.3