projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca9039c
)
[RTL]
author
Aleksey Bragin
<aleksey@reactos.org>
Wed, 15 Dec 2010 20:03:43 +0000
(20:03 +0000)
committer
Aleksey Bragin
<aleksey@reactos.org>
Wed, 15 Dec 2010 20:03:43 +0000
(20:03 +0000)
- 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.
svn path=/trunk/; revision=50031
reactos/lib/rtl/actctx.c
patch
|
blob
|
history
diff --git
a/reactos/lib/rtl/actctx.c
b/reactos/lib/rtl/actctx.c
index
40883a8
..
eb07758
100644
(file)
--- a/
reactos/lib/rtl/actctx.c
+++ b/
reactos/lib/rtl/actctx.c
@@
-239,7
+239,7
@@
static UNICODE_STRING xmlstr2unicode(const xmlstr_t *xmlstr)
UNICODE_STRING res;
res.Buffer = (PWSTR)xmlstr->ptr;
- res.Length = res.MaximumLength = xmlstr->len;
+ res.Length = res.MaximumLength = xmlstr->len
* sizeof(WCHAR)
;
return res;
}