• 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
..
tests Loading commit data...
Makefile.in Loading commit data...
caret.c Loading commit data...
clipboard.c Loading commit data...
context.c Loading commit data...
editor.c Loading commit data...
editor.h Loading commit data...
editstr.h Loading commit data...
list.c Loading commit data...
ocr_reverse.cur Loading commit data...
paint.c Loading commit data...
para.c Loading commit data...
reader.c Loading commit data...
res.h Loading commit data...
riched20.spec Loading commit data...
richole.c Loading commit data...
row.c Loading commit data...
rtf.h Loading commit data...
run.c Loading commit data...
string.c Loading commit data...
style.c Loading commit data...
table.c Loading commit data...
txthost.c Loading commit data...
txtsrv.c Loading commit data...
undo.c Loading commit data...
version.rc Loading commit data...
wrap.c Loading commit data...
writer.c Loading commit data...