]> git.pld-linux.org Git - packages/X11.git/blame - x11r6.9.0-mitri.diff
- added x11r6.9.0-mitri.diff (official CVE-2006-1525 fix)
[packages/X11.git] / x11r6.9.0-mitri.diff
CommitLineData
c8fe0da2
JB
1Index: programs/Xserver/render/mitri.c
2===================================================================
3RCS file: /cvs/xorg/xc/programs/Xserver/render/mitri.c,v
4retrieving revision 1.5
5diff -u -r1.5 mitri.c
6--- programs/Xserver/render/mitri.c 3 Jul 2005 07:02:08 -0000 1.5
7+++ programs/Xserver/render/mitri.c 30 Apr 2006 20:19:57 -0000
8@@ -145,7 +145,7 @@
9 if (npoint < 3)
10 return;
11 ntri = npoint - 2;
12- tris = ALLOCATE_LOCAL (ntri & sizeof (xTriangle));
13+ tris = ALLOCATE_LOCAL (ntri * sizeof (xTriangle));
14 if (!tris)
15 return;
16 for (tri = tris; npoint >= 3; npoint--, points++, tri++)
17@@ -177,7 +177,7 @@
18 if (npoint < 3)
19 return;
20 ntri = npoint - 2;
21- tris = ALLOCATE_LOCAL (ntri & sizeof (xTriangle));
22+ tris = ALLOCATE_LOCAL (ntri * sizeof (xTriangle));
23 if (!tris)
24 return;
25 first = points++;
This page took 0.032135 seconds and 4 git commands to generate.