Bug #13765: Heap corruption in XC-SECURITY extension code.
This commit is contained in:
@@ -448,7 +448,7 @@ XaceCensorImage(client, pVisibleRegion, widthBytesLine, pDraw, x, y, w, h,
|
|||||||
|
|
||||||
/* convert region to list-of-rectangles for PolyFillRect */
|
/* convert region to list-of-rectangles for PolyFillRect */
|
||||||
|
|
||||||
pRects = (xRectangle *)xalloc(nRects * sizeof(xRectangle *));
|
pRects = (xRectangle *)xalloc(nRects * sizeof(xRectangle));
|
||||||
if (!pRects)
|
if (!pRects)
|
||||||
{
|
{
|
||||||
failed = TRUE;
|
failed = TRUE;
|
||||||
|
|||||||
Reference in New Issue
Block a user