Closed GoogleCodeExporter closed 9 years ago
When the NULL pointer is converted to std::wstring, the access violation is
generated.
NULL is not specified for the argument of ReadConfigString(), or NULL is
replaced
with the empty string in CConfigParser::ReadString().
E.g.
----------
const std::wstring& CConfigParser::ReadString(LPCTSTR section, LPCTSTR key,
LPCTSTR
defValue, bool bReplaceMeasures)
{
static std::wstring result;
if (section == NULL)
{
section = L"";
}
if (key == NULL)
{
key = L"";
}
if (defValue == NULL)
{
defValue = L"";
}
result = GetValue(section, key, defValue);
if (result == defValue)
{
return result;
}
----------
Original comment by spx268
on 29 Aug 2009 at 4:46
The fix is integrated to r205.
Original comment by kimmo.pekkola
on 2 Sep 2009 at 5:05
Original comment by kimmo.pekkola
on 2 Sep 2009 at 5:05
Original issue reported on code.google.com by
kenz0.sa...@gmail.com
on 29 Aug 2009 at 2:39