diff --git a/libyara/modules/elf.c b/libyara/modules/elf.c index 05b9045f20..443958f92b 100644 --- a/libyara/modules/elf.c +++ b/libyara/modules/elf.c @@ -84,7 +84,6 @@ uint64_t elf_rva_to_offset_##bits( \ { \ if (section->type != ELF_SHT_NULL && \ section->type != ELF_SHT_NOBITS && \ - section->size <= elf_size && \ rva >= section->addr && \ rva < section->addr + section->size) \ { \