xserver/hw
Colin Harrison e95bb97073 hw/xwin: Fix possible crash in winMultiWindowGetClassHint
Fix a possible crash in winMultiWindowGetClassHint() when an application doesn't
null terminate the WM_CLASS property class name (which is an ICCCM conformance
bug in the application)

(Reported for running the contiki cooja simulator in multiwindow mode, although
it seems that many Java clients may have this problem, see [1])

Based on a patch by Marc Haesen.

v2: Avoid using strnlen() which is missing on MinGW
v3: Align with Xming patch

[1] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6961123

Signed-off-by: Colin Harrison <colin.harrison@virgin.net>
Reviewed-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2013-07-23 23:59:41 +01:00
..
dmx glxproxy: Use _XEatDataWords (from Xlib 1.6) instead of _XEatData 2013-07-17 18:10:41 -07:00
kdrive Xephyr: Use _XEatDataWords (from Xlib 1.6) instead of _XEatData 2013-07-17 18:10:41 -07:00
vfb vfb: Initialize the GLX extension again. 2012-11-21 11:13:55 +11:00
xfree86 dix: scale y back instead of x up when pre-scaling coordinates 2013-07-22 14:18:30 +10:00
xnest Fix typo in header guard. 2013-07-17 18:11:41 -07:00
xquartz Full support of sRGB capable fbconfigs. 2013-03-18 10:02:00 -07:00
xwin hw/xwin: Fix possible crash in winMultiWindowGetClassHint 2013-07-23 23:59:41 +01:00
Makefile.am Catch errors in recursive relink targets 2010-03-22 00:45:57 -05:00