mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-30 11:40:23 +01:00
Typo in ALLLOCATE_LOCAL() arguments, causing mis-computation of the buffer.
Bugzilla #6642.
This commit is contained in:
parent
933b9f7615
commit
30c597535e
1 changed files with 2 additions and 2 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue