diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2008-01-03 21:41:02 -0500 |
---|---|---|
committer | Eamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil> | 2008-01-03 21:41:02 -0500 |
commit | cd0603c2dc5ee000ebce66056bc1a72f99bfb617 (patch) | |
tree | 909a245d02a94be2d1ed5de44d0c07a77cd48adc /Xext/xace.c | |
parent | e46d559739e020dc7f6fcbdc6d1fb39c57aab4b1 (diff) |
Bug #13765: Heap corruption in XC-SECURITY extension code.
Diffstat (limited to 'Xext/xace.c')
-rw-r--r-- | Xext/xace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xext/xace.c b/Xext/xace.c index 9f8a8cc75..6a7df3188 100644 --- a/Xext/xace.c +++ b/Xext/xace.c @@ -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; |