Skip to content

Commit

Permalink
Merge pull request #1191 from avast/LZ_EntryTypeRecordNULL
Browse files Browse the repository at this point in the history
Fixed crash when entryTypeRecord is NULL
  • Loading branch information
metthal authored Feb 13, 2024
2 parents 094a373 + 887f20e commit 21b1dda
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 21b1dda

Please sign in to comment.