[PATCH] xf86RandR12: use correct gamma size when allocating gamma table

Keith Packard keithp at keithp.com
Mon Apr 21 22:39:46 PDT 2014


dbehr at chromium.org writes:

> From: Dominik Behr <dbehr at chromium.org>
>
> When setting crtc->gamma_size to randr_crtc->gammaSize we should
> use randr_crtc->gammaSize to allocate new gamma table in crtc.
> Currently, if randr_crtc->gammaSize > crtc->gammaSize the subsequent
> memcpy will overwrite memory beyond the end of gamma table.
Merged.
   35d275c..70e5641  master -> master

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20140421/09bb648b/attachment.sig>


More information about the xorg-devel mailing list