Mercurial > mplayer.hg
changeset 19663:042680f89e7d
Fix possible unallocated memory read in libass line wrapping code.
author | eugeni |
---|---|
date | Mon, 04 Sep 2006 17:52:28 +0000 |
parents | 042e0009a1c0 |
children | f6badf921e82 |
files | libass/ass_render.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libass/ass_render.c Mon Sep 04 09:50:11 2006 +0000 +++ b/libass/ass_render.c Mon Sep 04 17:52:28 2006 +0000 @@ -1349,9 +1349,9 @@ w = s2; do { --w; } while ((w > s1) && (w->symbol == ' ')); - do { --w; } while ((w > s1) && (w->symbol != ' ')); + while ((w > s1) && (w->symbol != ' ')) { --w; } e1 = w; - do { --e1; } while ((e1 > s1) && (e1->symbol == ' ')); + while ((e1 > s1) && (e1->symbol == ' ')) { --e1; } if (w->symbol == ' ') ++w; l1 = ((s2-1)->bbox.xMax + (s2-1)->pos.x) - (s1->bbox.xMin + s1->pos.x);