summaryrefslogtreecommitdiff
path: root/mi
diff options
context:
space:
mode:
authorPeter Harris <pharris@opentext.com>2013-07-15 19:44:29 -0400
committerAdam Jackson <ajax@redhat.com>2013-09-10 13:26:25 -0400
commit20c2a3bcb11b5baf564e2c73a477ba23f5ae2b10 (patch)
treeaa19b5a970a696836bf9d53785f536eb981781dd /mi
parent9bf46610a9d20962854016032de4567974e87957 (diff)
mi: Avoid stack smash when drawing dashed lines
X.org Bug 54013 <https://bugs.freedesktop.org/show_bug.cgi?id=54013> Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Peter Harris <pharris@opentext.com>
Diffstat (limited to 'mi')
-rw-r--r--mi/miwideline.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mi/miwideline.c b/mi/miwideline.c
index ca18f156e..b76e7a818 100644
--- a/mi/miwideline.c
+++ b/mi/miwideline.c
@@ -994,7 +994,7 @@ miLineProjectingCap(DrawablePtr pDrawable, GCPtr pGC, unsigned long pixel,
{
int xorgi = 0, yorgi = 0;
int lw;
- PolyEdgeRec lefts[2], rights[2];
+ PolyEdgeRec lefts[4], rights[4];
int lefty, righty, topy, bottomy;
PolyEdgePtr left, right;
PolyEdgePtr top, bottom;
@@ -1166,7 +1166,7 @@ miWideSegment(DrawablePtr pDrawable,
PolyEdgePtr top, bottom;
int lefty, righty, topy, bottomy;
int signdx;
- PolyEdgeRec lefts[2], rights[2];
+ PolyEdgeRec lefts[4], rights[4];
LineFacePtr tface;
int lw = pGC->lineWidth;
@@ -1520,7 +1520,7 @@ miWideDashSegment(DrawablePtr pDrawable,
PolyVertexRec vertices[4];
PolyVertexRec saveRight, saveBottom;
PolySlopeRec slopes[4];
- PolyEdgeRec left[2], right[2];
+ PolyEdgeRec left[4], right[4];
LineFaceRec lcapFace, rcapFace;
int nleft, nright;
int h;