mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:36:11 +00:00
[User32]
- Patch by Roman Pi?l : Fix buffer overflow in EDIT_EM_ReplaceSel(). svn path=/trunk/; revision=73470
This commit is contained in:
parent
1140838644
commit
30ff1f1032
1 changed files with 1 additions and 1 deletions
|
@ -2644,7 +2644,7 @@ static void EDIT_EM_ReplaceSel(EDITSTATE *es, BOOL can_undo, LPCWSTR lpsz_replac
|
|||
if (es->buffer_limit < (tl - (e-s)))
|
||||
strl = 0;
|
||||
else
|
||||
strl = es->buffer_limit - (tl - (e-s));
|
||||
strl = min(strl, es->buffer_limit - (tl - (e-s)));
|
||||
}
|
||||
|
||||
if (!EDIT_MakeFit(es, tl - (e - s) + strl))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue