XQuartz: Validate length in appledri before swapping
authorJeremy Huddleston Sequoia <jeremyhu@apple.com>
Wed, 1 Jan 2014 18:47:52 +0000 (10:47 -0800)
committerJeremy Huddleston Sequoia <jeremyhu@apple.com>
Mon, 13 Jan 2014 07:12:48 +0000 (23:12 -0800)
commita03f096a85537d9e881cedaa6cb71aca43a97086
tree96452096074a673b6a679feb24351543d4de93ed
parentb3572c0d1ab7888ac26d6b2b8be6d1d19ed9af3f
XQuartz: Validate length in appledri before swapping

Avoids potential memory corruption from bad requests

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
hw/xquartz/xpr/appledri.c