wine/dlls/riched20
Dylan Smith caca486029 richedit: Add bounds checks for EM_GETTEXTRANGE with tests.
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.
2009-03-23 13:26:28 +01:00
..
tests richedit: Add bounds checks for EM_GETTEXTRANGE with tests. 2009-03-23 13:26:28 +01:00
caret.c richedit: Store paragraph in cursors. 2009-02-10 12:59:09 +01:00
clipboard.c riched20: Remove superfluous pointer casts. 2009-01-30 11:45:23 +01:00
context.c richedit: Use width from EM_SETTARGETDEVICE for wrapping. 2009-02-02 15:21:44 +01:00
editor.c richedit: Add bounds checks for EM_GETTEXTRANGE with tests. 2009-03-23 13:26:28 +01:00
editor.h riched20: Remove unused functions. 2009-02-09 13:21:21 +01:00
editstr.h richedit: Removed unused ME_Document structure. 2009-02-17 12:46:56 +01:00
list.c riched20: Remove unused functions. 2009-02-09 13:21:21 +01:00
Makefile.in richedit: Implemented ITextServices TxGetText and TxSetText. 2009-01-21 11:55:36 +01:00
ocr_reverse.cur riched20: Implement ECO/EM SELECTIONBAR. 2007-12-17 11:34:40 +01:00
paint.c richedit: Fixed scrollbar visiblility calculation after SetScrollInfo. 2009-02-24 16:57:28 +01:00
para.c richedit: Store paragraph in cursors. 2009-02-10 12:59:09 +01:00
reader.c riched20: Remove superfluous pointer casts. 2009-01-30 11:45:23 +01:00
res.h riched20: Implement ECO/EM SELECTIONBAR. 2007-12-17 11:34:40 +01:00
riched20.spec
richole.c include: Change long to LONG in tom.idl. 2009-03-10 12:06:10 +01:00
row.c riched20: Remove unused functions. 2009-02-09 13:21:21 +01:00
rtf.h riched20: Declare some functions static. 2009-01-19 13:36:26 +01:00
run.c richedit: Store paragraph in cursors. 2009-02-10 12:59:09 +01:00
string.c richedit: Removed ME_StrRelPos, ME_StrRelPos2, & ME_PosToVPos functions. 2009-02-09 13:05:13 +01:00
style.c riched20: Remove unused functions. 2009-02-09 13:21:21 +01:00
table.c richedit: Store paragraph in cursors. 2009-02-10 12:59:09 +01:00
txthost.c richedit: Avoid calling ITextHost_TxNotify with EN_MSGFILTER. 2009-03-06 12:49:04 +01:00
txtsrv.c richedit: Avoid crashing if TxSendMessage is called with NULL plresult. 2009-02-26 15:13:25 +01:00
undo.c richedit: Store paragraph in cursors. 2009-02-10 12:59:09 +01:00
version.rc riched20: Implement ECO/EM SELECTIONBAR. 2007-12-17 11:34:40 +01:00
wrap.c richedit: Count graphics towards line width. 2009-03-11 13:03:30 +01:00
writer.c richedit: Removed ME_StrLen and ME_StrVLen field access functions. 2009-02-09 13:05:13 +01:00