mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-06 01:10:32 +01:00
CVE-2008-2361 - RENDER Extension crash
An integer overflow may occur in the computation of the size of the glyph to be allocated by the ProcRenderCreateCursor() function which will cause less memory to be allocated than expected, leading later to dereferencing un-mapped memory, causing a crash of the X server.
This commit is contained in:
parent
f7c40a003d
commit
5677751a04
1 changed files with 2 additions and 0 deletions
|
|
@ -1569,6 +1569,8 @@ ProcRenderCreateCursor (ClientPtr client)
|
|||
pScreen = pSrc->pDrawable->pScreen;
|
||||
width = pSrc->pDrawable->width;
|
||||
height = pSrc->pDrawable->height;
|
||||
if (height && width > UINT32_MAX/(height*sizeof(CARD32)))
|
||||
return BadAlloc;
|
||||
if ( stuff->x > width
|
||||
|| stuff->y > height )
|
||||
return (BadMatch);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue