diff --git a/src/fileformat/file_format/elf/elf_format.cpp b/src/fileformat/file_format/elf/elf_format.cpp index 877cbef45..7c1319d8b 100644 --- a/src/fileformat/file_format/elf/elf_format.cpp +++ b/src/fileformat/file_format/elf/elf_format.cpp @@ -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; }