Author: gschneider
Date: Fri May 14 23:20:40 2010
New Revision: 47208
URL:
http://svn.reactos.org/svn/reactos?rev=47208&view=rev
Log:
[NEWINFLIB] Fix an off-by-one bug, which lead to the crash of mkhive after parsing ~3
files on Windows or ~5 files on Linux
See issue #5338 for more details.
Modified:
trunk/reactos/lib/newinflib/infhostrtl.c
Modified: trunk/reactos/lib/newinflib/infhostrtl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/newinflib/infhostrtl.c…
==============================================================================
--- trunk/reactos/lib/newinflib/infhostrtl.c [iso-8859-1] (original)
+++ trunk/reactos/lib/newinflib/infhostrtl.c [iso-8859-1] Fri May 14 23:20:40 2010
@@ -36,7 +36,7 @@
*ResultSize = Size * sizeof(WCHAR);
WideString = (PUCHAR)UnicodeString;
- for (i = 0; i <= Size; i++)
+ for (i = 0; i < Size; i++)
{
WideString[2 * i + 0] = (UCHAR)MbString[i];
WideString[2 * i + 1] = 0;