Fix crash on empty symbol tables

develop
lethosor 2017-11-25 01:10:47 -05:00
parent 2c95ac411e
commit 35b0e962ce
2 changed files with 5 additions and 1 deletions

@ -116,6 +116,10 @@ void VersionInfoFactory::ParseVersion (TiXmlElement* entry, VersionInfo* mem)
// process additional entries
//cout << "Entry " << cstr_version << " " << cstr_os << endl;
if (!entry->FirstChildElement()) {
cerr << "Empty symbol table: " << entry->Attribute("name") << endl;
return;
}
pMemEntry = entry->FirstChildElement()->ToElement();
for(;pMemEntry;pMemEntry=pMemEntry->NextSiblingElement())
{

@ -1 +1 @@
Subproject commit fd6e70de5047a48b163ced482c8a925b6a021891
Subproject commit 24b87c74675df5059b848c4a1b8764a293fdda1b