[Take 5] winex11.drv: Fix a buffer overflow bug in X11DRV_KeyEvent() and X11DRV_ToUnicodeEx()

Muneyuki Noguchi nogu.dev at gmail.com
Fri Aug 29 16:37:13 CDT 2008


winex11.drv: Fix a buffer overflow bug in X11DRV_KeyEvent() and
X11DRV_ToUnicodeEx()

Currently, Wine users can't input and enter more than 8 multi-byte
characters with a input method, such as SCIM and uim (Bug #11281 and
Bug #9838). This makes CJK users very frustrated and is a serious bug.
This bug can't be reproduced when users are inputting only single-byte
characters. The attached patch fixes this bug.

CJK input many issues
http://bugs.winehq.org/show_bug.cgi?id=11281
Input Method's output overruns the buffer of wine keyboard input
http://bugs.winehq.org/show_bug.cgi?id=9838

A similar patch is sent to wine-patches by Kusanagi Kouichi, but
rejected his second patch silently. To make the issue clear, unlike
his patch, my patch fixes only buffer overflow bugs.

winex11.drv: Handle arbitrary length composed input. [take 2]
http://www.winehq.org/pipermail/wine-patches/2008-March/051858.html

Again, this is a serious bug for CJK users.
-- 
Muneyuki Noguchi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-winex11.drv-Fix-a-buffer-overflow-bug-in-X11DRV_Key.patch
Type: text/x-patch
Size: 4755 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080830/79411f46/attachment.bin 


More information about the wine-patches mailing list