Author: jimtabor
Date: Sat Jan 3 22:09:19 2009
New Revision: 38540
URL:
http://svn.reactos.org/svn/reactos?rev=38540&view=rev
Log:
- Add check for probed strings. Thanks, Timo and Thomas.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/window.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/window.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] Sat Jan 3 22:09:19
2009
@@ -4548,6 +4548,7 @@
_SEH2_TRY
{
SafeText = ProbeForReadUnicodeString(WindowText);
+ ProbeForRead(SafeText.Buffer, SafeText.Length, sizeof(WCHAR));
}
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
{