Lines 1504-1509
ProcRenderCreateCursor (ClientPtr client)
Link Here
|
1504 |
pScreen = pSrc->pDrawable->pScreen; |
1504 |
pScreen = pSrc->pDrawable->pScreen; |
1505 |
width = pSrc->pDrawable->width; |
1505 |
width = pSrc->pDrawable->width; |
1506 |
height = pSrc->pDrawable->height; |
1506 |
height = pSrc->pDrawable->height; |
|
|
1507 |
if (height && width > UINT32_MAX/(height*sizeof(CARD32))) |
1508 |
return BadAlloc; |
1507 |
if ( stuff->x > width |
1509 |
if ( stuff->x > width |
1508 |
|| stuff->y > height ) |
1510 |
|| stuff->y > height ) |
1509 |
return (BadMatch); |
1511 |
return (BadMatch); |