Bug #13765: Heap corruption in XC-SECURITY extension code.

This commit is contained in:
Eamon Walsh 2008-01-03 21:41:02 -05:00 committed by Eamon Walsh
parent e46d559739
commit cd0603c2dc

View File

@ -448,7 +448,7 @@ XaceCensorImage(client, pVisibleRegion, widthBytesLine, pDraw, x, y, w, h,
/* convert region to list-of-rectangles for PolyFillRect */
pRects = (xRectangle *)xalloc(nRects * sizeof(xRectangle *));
pRects = (xRectangle *)xalloc(nRects * sizeof(xRectangle));
if (!pRects)
{
failed = TRUE;