mirror of
https://github.com/avast/retdec.git
synced 2024-11-27 06:40:29 +00:00
Fixed crash when entryTypeRecord is NULL
This commit is contained in:
parent
094a37393f
commit
887f20e81b
@ -1427,7 +1427,7 @@ ELFIO::section* ElfFormat::addPltRelocationTable(ELFIO::section *dynamicSection,
|
||||
const auto *relEntrySizeRecord = table.getRecordOfType(DT_RELENT);
|
||||
const auto *relaEntrySizeRecord = table.getRecordOfType(DT_RELAENT);
|
||||
|
||||
if(!pltgotRecord || !addrRecord || !sizeRecord)
|
||||
if(!pltgotRecord || !addrRecord || !sizeRecord || !entryTypeRecord)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user