summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-base/xorg-x11/files/CVE-2006-1526-xrender-mitri.patch')
-rw-r--r--x11-base/xorg-x11/files/CVE-2006-1526-xrender-mitri.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/x11-base/xorg-x11/files/CVE-2006-1526-xrender-mitri.patch b/x11-base/xorg-x11/files/CVE-2006-1526-xrender-mitri.patch
new file mode 100644
index 000000000000..2d2a104cb902
--- /dev/null
+++ b/x11-base/xorg-x11/files/CVE-2006-1526-xrender-mitri.patch
@@ -0,0 +1,26 @@
+Index: render/mitri.c
+===================================================================
+RCS file: /cvs/xorg/xserver/xorg/render/mitri.c,v
+retrieving revision 1.5
+diff -u -r1.5 mitri.c
+--- xc/programs/Xserver/render/mitri.c 3 Jul 2005 07:02:08 -0000 1.5
++++ xc/programs/Xserver/render/mitri.c 18 Apr 2006 22:34:08 -0000
+@@ -145,7 +145,7 @@
+ if (npoint < 3)
+ return;
+ ntri = npoint - 2;
+- tris = ALLOCATE_LOCAL (ntri & sizeof (xTriangle));
++ tris = ALLOCATE_LOCAL (ntri * sizeof (xTriangle));
+ if (!tris)
+ return;
+ for (tri = tris; npoint >= 3; npoint--, points++, tri++)
+@@ -177,7 +177,7 @@
+ if (npoint < 3)
+ return;
+ ntri = npoint - 2;
+- tris = ALLOCATE_LOCAL (ntri & sizeof (xTriangle));
++ tris = ALLOCATE_LOCAL (ntri * sizeof (xTriangle));
+ if (!tris)
+ return;
+ first = points++;
+