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>
This commit is contained in:
parent
9bf46610a9
commit
20c2a3bcb1
|
@ -994,7 +994,7 @@ miLineProjectingCap(DrawablePtr pDrawable, GCPtr pGC, unsigned long pixel,
|
||||||
{
|
{
|
||||||
int xorgi = 0, yorgi = 0;
|
int xorgi = 0, yorgi = 0;
|
||||||
int lw;
|
int lw;
|
||||||
PolyEdgeRec lefts[2], rights[2];
|
PolyEdgeRec lefts[4], rights[4];
|
||||||
int lefty, righty, topy, bottomy;
|
int lefty, righty, topy, bottomy;
|
||||||
PolyEdgePtr left, right;
|
PolyEdgePtr left, right;
|
||||||
PolyEdgePtr top, bottom;
|
PolyEdgePtr top, bottom;
|
||||||
|
@ -1166,7 +1166,7 @@ miWideSegment(DrawablePtr pDrawable,
|
||||||
PolyEdgePtr top, bottom;
|
PolyEdgePtr top, bottom;
|
||||||
int lefty, righty, topy, bottomy;
|
int lefty, righty, topy, bottomy;
|
||||||
int signdx;
|
int signdx;
|
||||||
PolyEdgeRec lefts[2], rights[2];
|
PolyEdgeRec lefts[4], rights[4];
|
||||||
LineFacePtr tface;
|
LineFacePtr tface;
|
||||||
int lw = pGC->lineWidth;
|
int lw = pGC->lineWidth;
|
||||||
|
|
||||||
|
@ -1520,7 +1520,7 @@ miWideDashSegment(DrawablePtr pDrawable,
|
||||||
PolyVertexRec vertices[4];
|
PolyVertexRec vertices[4];
|
||||||
PolyVertexRec saveRight, saveBottom;
|
PolyVertexRec saveRight, saveBottom;
|
||||||
PolySlopeRec slopes[4];
|
PolySlopeRec slopes[4];
|
||||||
PolyEdgeRec left[2], right[2];
|
PolyEdgeRec left[4], right[4];
|
||||||
LineFaceRec lcapFace, rcapFace;
|
LineFaceRec lcapFace, rcapFace;
|
||||||
int nleft, nright;
|
int nleft, nright;
|
||||||
int h;
|
int h;
|
||||||
|
|
Loading…
Reference in New Issue