Author: fireball
Date: Wed Dec 15 20:03:43 2010
New Revision: 50031
URL:
http://svn.reactos.org/svn/reactos?rev=50031&view=rev
Log:
[RTL]
- Roel Messiant: Specify proper byte length of a unicode string. Fixes out of bounds
access in actctx.c support code. No more half-cut active context stuff in debug logs.
Modified:
trunk/reactos/lib/rtl/actctx.c
Modified: trunk/reactos/lib/rtl/actctx.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/actctx.c?rev=50031…
==============================================================================
--- trunk/reactos/lib/rtl/actctx.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/actctx.c [iso-8859-1] Wed Dec 15 20:03:43 2010
@@ -239,7 +239,7 @@
UNICODE_STRING res;
res.Buffer = (PWSTR)xmlstr->ptr;
- res.Length = res.MaximumLength = xmlstr->len;
+ res.Length = res.MaximumLength = xmlstr->len * sizeof(WCHAR);
return res;
}