hw/xwin: Improve NET_WM_ICON validation
authorJon TURNEY <jon.turney@dronecode.org.uk>
Sun, 16 Jun 2013 12:55:51 +0000 (13:55 +0100)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Sat, 22 Mar 2014 18:56:43 +0000 (18:56 +0000)
commit896b53ffa72d91d7d604967028291525562b60dd
tree60b92a8874e888aba542d2cb5da82c57a59fe391
parentab61d070024a4776f011e71d762d4c6c0cf58b12
hw/xwin: Improve NET_WM_ICON validation

Check that we don't overrun the end of the property data while converting icons

See http://cygwin.com/ml/cygwin-xfree/2013-06/msg00040.html for testcase.

Also, some warning fixes in winXIconToHICON()

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
hw/xwin/winmultiwindowicons.c