mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 06:25:49 +00:00
[RTL] find_string_index: name parameter may not be null terminated
This commit is contained in:
parent
ff8d8a8162
commit
51c694274f
1 changed files with 2 additions and 1 deletions
|
@ -3222,7 +3222,8 @@ static struct string_index *find_string_index(const struct strsection_header *se
|
||||||
{
|
{
|
||||||
const WCHAR *nameW = (WCHAR*)((BYTE*)section + iter->name_offset);
|
const WCHAR *nameW = (WCHAR*)((BYTE*)section + iter->name_offset);
|
||||||
|
|
||||||
if (!strcmpiW(nameW, name->Buffer))
|
if (!_wcsnicmp(nameW, name->Buffer, name->Length / sizeof(WCHAR)) &&
|
||||||
|
wcslen(nameW) == name->Length / sizeof(WCHAR))
|
||||||
{
|
{
|
||||||
index = iter;
|
index = iter;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue