mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-06-19 11:18:26 +02:00
Apply an xserver patch from cworth: Avoid buffer ovverrun when a
trapezoid's right edge is on a pixel boundary.
This commit is contained in:
parent
e321f9e7ff
commit
7777d325a3
1 changed files with 6 additions and 1 deletions
|
|
@ -108,7 +108,12 @@ rasterizeEdges (FbBits *buf,
|
|||
AddAlpha (N_X_FRAC(N_BITS));
|
||||
StepAlpha;
|
||||
}
|
||||
AddAlpha (rxs);
|
||||
/* Do not add in a 0 alpha here. This check is necessary
|
||||
* to avoid a buffer overrun when rx is exactly on a pixel
|
||||
* boundary.
|
||||
*/
|
||||
if (rxs != 0)
|
||||
AddAlpha (rxs);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue