user32: Fix buffer overflow in EDIT_EM_ReplaceSel().
commit9de8ea75645d7092f888ddd7572f35204e672757
authorRoman Pišl <rpisl@seznam.cz>
Mon, 17 Oct 2016 22:34:55 +0000 (18 00:34 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 19 Oct 2016 16:50:12 +0000 (19 09:50 -0700)
treedab618d316a91b2acebd08330378ec58423b9551
parent71bd13391b3cd8d686b552021b918cf1e4f70d31
user32: Fix buffer overflow in EDIT_EM_ReplaceSel().

After EN_MAXTEXT notification, available space may be larger than
length of the string. This must be checked and strl must not be
set to a value larger than the actual length of the string.

Signed-off-by: Roman Pišl <rpisl@seznam.cz>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/user32/edit.c