mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-22 20:35:43 +00:00
Fix for a divide by zero that can be triggered by a malicious client.
Problem reported by Derek Abdine of rapid7.com. Thanks.
This commit is contained in:
parent
873ef75b1e
commit
71fc5b3e93
2 changed files with 4 additions and 0 deletions
|
|
@ -117,6 +117,9 @@ fbRasterizeTrapezoid (PicturePtr pPicture,
|
|||
RenderEdge l, r;
|
||||
xFixed t, b;
|
||||
|
||||
if (!xTrapezoidValid (trap))
|
||||
return;
|
||||
|
||||
fbGetDrawable (pPicture->pDrawable, buf, stride, bpp, pxoff, pyoff);
|
||||
|
||||
width = pPicture->pDrawable->width;
|
||||
|
|
|
|||
Loading…
Reference in a new issue