jirentabu / crashrpt

Automatically exported from code.google.com/p/crashrpt
0 stars 0 forks source link

CrashSender Crash #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If m_pCrash_info->pszUrl is NULL Or = _T( "") (I do not have an upload 
site) with m_pCrash_info->uPriorities[CR_HTTP] = 0; CrashSender crashes 
while getting url properties.

VS2008 SP1 - C++ - MBCS - Linked libraries with static CRT

Original issue reported on code.google.com by zacca...@zaksoft.com on 5 Apr 2010 at 9:48

GoogleCodeExporter commented 9 years ago
The problem is int CrashInfoReader.cpp at line 93:

const char* szUrl = hUrl.FirstChild().ToText()->Value();

This works well if <Url></Url> tag contains some text, but this would crash if 
it is
empty. 

This code should be replaced with the following:

if(hUrl.FirstChild().ToElement()!=NULL)
{
  const char* szUrl = hUrl.FirstChild().ToText()->Value();
  if(szUrl!=NULL)
    m_sUrl = strconv.utf82t(szUrl);
}

Original comment by zexspect...@gmail.com on 6 Apr 2010 at 10:46

GoogleCodeExporter commented 9 years ago
CrashSender crashes when I use crashcon.exe to test report. Don't know if the 
same cause.

Original comment by crendk...@gmail.com on 7 Apr 2010 at 5:23

GoogleCodeExporter commented 9 years ago
Fixed in v.1.2.3

Original comment by zexspect...@gmail.com on 12 Apr 2010 at 11:18