RICHED20: prevent overflow on richedit debug channel

a_villacis at palosanto.com a_villacis at palosanto.com
Sat Sep 15 21:32:20 CDT 2007


While debugging a problem with the use of the riched20 control in Facets, I
stumbled upon the following problem when turning on the "richedit" debug
channel:

trace:richedit:RichEditWndProc_common hwnd 0x10032 msg 2111 () 3000000
10032, unicode 0
trace:richedit:RichEditWndProc_common hwnd 0x10032 msg 2111 () 4000000
10032, unicode 0
trace:richedit:RichEditWndProc_common hwnd 0x10032 msg 0434 (EM_EXGETSEL)
0 33d1e4, unicode 0
trace:richedit:RichEditWndProc_common EM_EXGETSEL = (118,118)
trace:richedit:RichEditWndProc_common hwnd 0x10032 msg 2111 () 4000000
10032, unicode 0
trace:richedit:RichEditWndProc_common hwnd 0x10032 msg 0434 (EM_EXGETSEL)
0 33e0a8, unicode 0
trace:richedit:RichEditWndProc_common EM_EXGETSEL = (118,118)
trace:richedit:RichEditWndProc_common hwnd 0x10032 msg 0434 (EM_EXGETSEL)
0 33dccc, unicode 0
trace:richedit:RichEditWndProc_common EM_EXGETSEL = (118,118)
trace:richedit:RichEditWndProc_common hwnd 0x10032 msg 0434 (EM_EXGETSEL)
0 33e110, unicode 0
trace:richedit:RichEditWndProc_common EM_EXGETSEL = (118,118)
trace:richedit:RichEditWndProc_common hwnd 0x10032 msg 044a (EM_STREAMOUT)
1 33e0c4, unicode 0
trace:richedit:ME_StreamOutRange from 0 to 118
wine_dbg_vprintf: debugstr buffer overflow (contents:
'trace:richedit:ME_StreamOutMove 0:116:')

Shortly after this, Facets throws an "Automation error" instead of the bug I
am hunting, so I need to move this out of the way first.

Changelog:
* Keep richedit channel from overflowing debug buffer in ME_StreamOutMove

-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-riched20-writer-richedit-debugchannel-overflow.patch
Type: text/x-patch
Size: 563 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070915/59e8f48e/attachment.bin 


More information about the wine-patches mailing list