Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > General Discussion
  New Posts New Posts RSS Feed - GetName() crash in Temp Int Files
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

GetName() crash in Temp Int Files

 Post Reply Post Reply
Author
Message
novastor View Drop Down
Groupie
Groupie


Joined: 18 January 2006
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote novastor Quote  Post ReplyReply Direct Link To This Post Topic: GetName() crash in Temp Int Files
    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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 20 July 2006 at 3:39pm
Hi,
GetName() ? What class name?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
novastor View Drop Down
Groupie
Groupie


Joined: 18 January 2006
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote novastor Quote  Post ReplyReply Direct Link To This Post Posted: 20 July 2006 at 4:43pm
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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 21 July 2006 at 12:33pm
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
Back to Top
novastor View Drop Down
Groupie
Groupie


Joined: 18 January 2006
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote novastor Quote  Post ReplyReply Direct Link To This Post Posted: 26 July 2006 at 5:15pm

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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 27 July 2006 at 10:31am
Hi,
We will release 10.3 on this or next week.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.