• Dylan Smith's avatar
    richedit: Add bounds checks for EM_GETTEXTRANGE with tests. · caca4860
    Dylan Smith authored
    Wine was not doing bounds checks for EM_GETTEXTRANGE, which was causing
    a crash in Bug 17822.  The added tests would cause a crash without the
    added bounds checks in the richedit code.
    
    The bounds checks I put in HandleMessage, since ME_GetTextRange is also
    called for ME_GETSELTEXT which should not have bounds checks, since it
    uses the selection range.
    
    When the ME_GETTEXTRANGE message returns 0, no text is copied, not even
    the NULL terminating charter.  This differs from EM_GETSELTEXT which
    will copy the NULL terminating character when no text is selected.  This
    behaviour is consistent with native richedit controls.
    caca4860
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
Make.rules.in Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...