1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Dbg crash fix

This commit is contained in:
Brian Fiete 2020-06-13 04:55:45 -07:00
parent da0bff04a4
commit 52786e96ac

View file

@ -2725,13 +2725,13 @@ void COFF::ParseCompileUnit_Symbols(DbgCompileUnit* compileUnit, uint8* sectionD
break; break;
REGREL32* regRel32 = (REGREL32*)dataStart; REGREL32* regRel32 = (REGREL32*)dataStart;
const char* name = DbgDupString((const char*)regRel32->name); const char* name = DbgDupString((const char*)regRel32->name);
DbgType* varType = CvGetType(regRel32->typind); DbgType* varType = CvGetType(regRel32->typind);
_NextUnrangedLocalVar(name, varType); _NextUnrangedLocalVar(name, varType);
localVar->mName = name; localVar->mName = name;
localVar->mCompileUnit = compileUnit; localVar->mCompileUnit = compileUnit;
if ((localVar->mType != NULL) && (!localVar->mType->IsPointer()) && (varType->IsPointer())) if ((localVar->mType != NULL) && (!localVar->mType->IsPointer()) && (varType != NULL) && (varType->IsPointer()))
localVar->mSigNoPointer = true; localVar->mSigNoPointer = true;
localVar->mType = varType; localVar->mType = varType;
// This is location data now, not just a S_LOCAL opener // This is location data now, not just a S_LOCAL opener