Hi guys:
I found a error in the everything sdk.
// get the search length
static void _Everything_GetSearchTextA(LPSTR buf)
{
DWORD len;
if (_Everything_Search)
{
len = _Everything_GetSearchLengthW();
if (_Everything_IsUnicodeSearch)
{
WideCharToMultiByte(CP_ACP,0,(LPCWSTR )_Everything_Search,-1,buf,len+1,0,0);
return;
}
else
{
CopyMemory(buf,_Everything_Search,len+1);
return;
}
}
*buf = 0;
}
Here, "len = _Everything_GetSearchLengthW();" should correct to "len = _Everything_GetSearchLengthA();"
If not, CopyMemory(buf,_Everything_Search,len+1); will use a wrong len value and cause heap corruption and then crash.
_Everything_GetSearchTextA implement error, cause a crash.
-
liulikui
- Posts: 2
- Joined: Thu Apr 07, 2022 8:52 am
-
void
- Developer
- Posts: 19903
- Joined: Fri Oct 16, 2009 11:31 pm
-
liulikui
- Posts: 2
- Joined: Thu Apr 07, 2022 8:52 am
Re: _Everything_GetSearchTextA implement error, cause a crash.
Thanks for your quick reply 