mirror of
https://github.com/reactos/reactos.git
synced 2025-07-03 16:51:23 +00:00
[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. svn path=/trunk/; revision=50031
This commit is contained in:
parent
ca9039c50e
commit
19e368a616
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ static UNICODE_STRING xmlstr2unicode(const xmlstr_t *xmlstr)
|
||||||
UNICODE_STRING res;
|
UNICODE_STRING res;
|
||||||
|
|
||||||
res.Buffer = (PWSTR)xmlstr->ptr;
|
res.Buffer = (PWSTR)xmlstr->ptr;
|
||||||
res.Length = res.MaximumLength = xmlstr->len;
|
res.Length = res.MaximumLength = xmlstr->len * sizeof(WCHAR);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue