summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorDominik Behr <dbehr@chromium.org>2014-04-01 20:36:13 -0700
committerKeith Packard <keithp@keithp.com>2014-04-21 22:27:09 -0700
commit70e564104b69bc53d29633f392f2c1ab94caddc9 (patch)
tree8449546669e2989bf90e7cc08653f6a499fcec80 /render
parent35d275c7519570ceaf82cd5e7a663a8a5be4d441 (diff)
xf86RandR12: use correct gamma size when allocating gamma table
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. Signed-off-by: Dominik Behr <dbehr@chromium.org> Reviewed-by: Stéphane Marchesin <marcheu@chromium.org> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'render')
0 files changed, 0 insertions, 0 deletions