From 52786e96ac6f56413d6d0bce281641b495d0b215 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sat, 13 Jun 2020 04:55:45 -0700 Subject: [PATCH] Dbg crash fix --- IDEHelper/COFF.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IDEHelper/COFF.cpp b/IDEHelper/COFF.cpp index ad043dbc..58dcb23d 100644 --- a/IDEHelper/COFF.cpp +++ b/IDEHelper/COFF.cpp @@ -2725,13 +2725,13 @@ void COFF::ParseCompileUnit_Symbols(DbgCompileUnit* compileUnit, uint8* sectionD break; REGREL32* regRel32 = (REGREL32*)dataStart; const char* name = DbgDupString((const char*)regRel32->name); - DbgType* varType = CvGetType(regRel32->typind); + DbgType* varType = CvGetType(regRel32->typind); _NextUnrangedLocalVar(name, varType); localVar->mName = name; 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->mType = varType; // This is location data now, not just a S_LOCAL opener