Author: hbelusca
Date: Wed Jul 13 16:43:16 2016
New Revision: 71928

URL: http://svn.reactos.org/svn/reactos?rev=71928&view=rev
Log:
[NTOSKRNL_VISTA lib]
Initialize utf8_ch_len to zero before using it (at each turn of the for-loop). 
As I couldn't find this code in Wine, I couldn't see whether they already fixed 
it or not. Caught by Victor.
CORE-11596

Modified:
    trunk/reactos/sdk/lib/drivers/ntoskrnl_vista/rtl.c

Modified: trunk/reactos/sdk/lib/drivers/ntoskrnl_vista/rtl.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/drivers/ntoskrnl_vista/rtl.c?rev=71928&r1=71927&r2=71928&view=diff
==============================================================================
--- trunk/reactos/sdk/lib/drivers/ntoskrnl_vista/rtl.c  [iso-8859-1] (original)
+++ trunk/reactos/sdk/lib/drivers/ntoskrnl_vista/rtl.c  [iso-8859-1] Wed Jul 13 
16:43:16 2016
@@ -72,6 +72,9 @@
         /* encode ch as UTF-8 */
 #ifndef __REACTOS__
         assert(ch <= 0x10ffff);
+#endif
+#ifdef __REACTOS__
+        utf8_ch_len = 0; // FIXME: Check whether a non-zero value might be 
better for the case ch >= 0x200000 ?
 #endif
         if (ch < 0x80)
         {


Reply via email to