http://bugs.winehq.org/show_bug.cgi?id=18612
Dylan Smith dylan.ah.smith@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|wine-bugs@winehq.org |dylan.ah.smith@gmail.com
--- Comment #2 from Dylan Smith dylan.ah.smith@gmail.com 2009-07-29 23:28:17 --- Created an attachment (id=22698) --> (http://bugs.winehq.org/attachment.cgi?id=22698) Prevent possible buffer overflow in WM_GETTEXT
Here is a patch that fixes the implementation of WM_GETTEXT, which is also more efficient by avoiding creating an extra copy of the text. It also properly handles 0 values for the buffer or the buffer length in WM_GETTEXT or EM_GETTEXTEX.