aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/mi
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-12-03 18:42:17 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-01-06 00:18:44 +0100
commitd3ae4a0ed35487fc03b40aac150f74d990ded1e3 (patch)
treef975991e53110fde10a0fb339e06e812817e4450 /nx-X11/programs/Xserver/mi
parent5a8f1e921b4cafedc9efac22d5fbd2ce05e45ba9 (diff)
downloadnx-libs-d3ae4a0ed35487fc03b40aac150f74d990ded1e3.tar.gz
nx-libs-d3ae4a0ed35487fc03b40aac150f74d990ded1e3.tar.bz2
nx-libs-d3ae4a0ed35487fc03b40aac150f74d990ded1e3.zip
mi: Avoid stack smash when drawing dashed lines
Backport of this xorg-xserver upstream patch: commit 20c2a3bcb11b5baf564e2c73a477ba23f5ae2b10 Author: Peter Harris <pharris@opentext.com> Date: Mon Jul 15 19:44:29 2013 -0400 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 'nx-X11/programs/Xserver/mi')
-rw-r--r--nx-X11/programs/Xserver/mi/miwideline.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nx-X11/programs/Xserver/mi/miwideline.c b/nx-X11/programs/Xserver/mi/miwideline.c
index 8d73eb979..eefed600c 100644
--- a/nx-X11/programs/Xserver/mi/miwideline.c
+++ b/nx-X11/programs/Xserver/mi/miwideline.c
@@ -1127,7 +1127,7 @@ miLineProjectingCap (pDrawable, pGC, pixel, spanData, face, isLeft, xorg, yorg,
{
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;
@@ -1311,7 +1311,7 @@ miWideSegment (
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;
@@ -1713,7 +1713,7 @@ miWideDashSegment (
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;