From b9a9cf618566bdd796556b8a1f31949f66184352 Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Tue, 2 May 2006 14:09:30 +0000 Subject: [PATCH] Typo in ALLLOCATE_LOCAL() arguments, causing mis-computation of the buffer. Bugzilla #6642. --- ChangeLog | 6 ++++++ render/mitri.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index bc32a22f3..90323650e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-05-02 Matthieu Herrb + + * render/mitri.c: + Typo in ALLLOCATE_LOCAL() arguments, causing mis-computation + of the buffer.Bugzilla #6642. + 2006-05-01 Alan Coopersmith * configure.ac: diff --git a/render/mitri.c b/render/mitri.c index 974225350..bc2641895 100644 --- a/render/mitri.c +++ b/render/mitri.c @@ -145,7 +145,7 @@ miTriStrip (CARD8 op, 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 @@ miTriFan (CARD8 op, if (npoint < 3) return; ntri = npoint - 2; - tris = ALLOCATE_LOCAL (ntri & sizeof (xTriangle)); + tris = ALLOCATE_LOCAL (ntri * sizeof (xTriangle)); if (!tris) return; first = points++;