mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
Fix for missing symbol check in named sections
This commit is contained in:
parent
d4e7c04809
commit
882e020406
2 changed files with 11 additions and 11 deletions
|
@ -2444,9 +2444,9 @@ SectionVector *SleighCompile::nextNamedSection(SectionVector *vec,ConstructTpl *
|
|||
|
||||
{ // Add additional named p-code sections
|
||||
sym->incrementDefineCount();
|
||||
SymbolScope *curscope = symtab.getCurrentScope();
|
||||
symtab.popScope(); // Pop the scope of the last named section
|
||||
SymbolScope *curscope = symtab.getCurrentScope(); // This should now be the Constructor scope
|
||||
SymbolScope *parscope = curscope->getParent();
|
||||
SymbolScope *parscope = symtab.getCurrentScope()->getParent();
|
||||
if (parscope != symtab.getGlobalScope())
|
||||
throw LowlevelError("nextNamedSection called when not in section scope"); // Unrecoverable
|
||||
symtab.addScope(); // Add new scope under the Constructor scope (not the last section scope)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue