Skip to content

Commit

Permalink
Fixed crash when entryTypeRecord is NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
Ladislav Zezula committed Feb 13, 2024
1 parent 094a373 commit 887f20e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fileformat/file_format/elf/elf_format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 887f20e

Please sign in to comment.