GetName() crash in Temp Int Files |
Post Reply |
Author | |
novastor
Groupie Joined: 18 January 2006 Status: Offline Points: 20 |
Post Options
Thanks(0)
Posted: 20 July 2006 at 2:46pm |
Hello,
I am using GetName() function to load elements inside a list. However when I am allowing my populatelist function to run on Temporary Internet Files it throws an exception details: Path: C:\Doc & Settings\..My profile\Local Settings\Temporary Internet Files\ Debug Assertion Failed: File:.\tcscpy_s.inl Line: 30 Expression:(L"Buffer is too small" && 0) Anyone any idea whats going on? One observation is that this temporary internet folder has a file name that has file name excluding extension definately greater than 260. Thanks, Sachin Modak. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
GetName() ? What class name?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
novastor
Groupie Joined: 18 January 2006 Status: Offline Points: 20 |
Post Options
Thanks(0)
|
Hi,
Here is what you asked for. It seems that there is a buffer overflow in STRCPY_S()...
BOOL CXTShellPidl::GetName(LPSHELLFOLDER lpsf, LPITEMIDLIST lpi, DWORD dwFlags, TCHAR* lpFriendlyName) { ... if (lpsf->GetDisplayNameOf(lpi, dwFlags, &str) == NOERROR)
{ switch (str.uType){ case STRRET_WSTR:#if defined(_UNICODE)STRCPY_S(lpFriendlyName, MAX_PATH, str.pOleStr); #else ::WideCharToMultiByte(CP_ACP, 0, str.pOleStr, -1, lpFriendlyName, MAX_PATH, NULL, NULL); ...
} hope this helps. Sachin Modak. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
Hmm.
right, lpFriendlyName has only 255 symbols (MAX_PATH) we will fix it to replace LPCTSTR lpFriendlyName to CString&
Thank you for let us know.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
novastor
Groupie Joined: 18 January 2006 Status: Offline Points: 20 |
Post Options
Thanks(0)
|
Hello, What is the ETA for this fix? We have a release scheduled in two weeks and this is a gating issue for us.
Thanks,
Sachin Modak.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
We will release 10.3 on this or next week.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |