mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 16:47:17 +00:00
caca486029
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. |
||
---|---|---|
.. | ||
tests | ||
caret.c | ||
clipboard.c | ||
context.c | ||
editor.c | ||
editor.h | ||
editstr.h | ||
list.c | ||
Makefile.in | ||
ocr_reverse.cur | ||
paint.c | ||
para.c | ||
reader.c | ||
res.h | ||
riched20.spec | ||
richole.c | ||
row.c | ||
rtf.h | ||
run.c | ||
string.c | ||
style.c | ||
table.c | ||
txthost.c | ||
txtsrv.c | ||
undo.c | ||
version.rc | ||
wrap.c | ||
writer.c |