[Forensics-changes] [yara] 104/368: Remove sanity check introduced in previous commit.
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:30:17 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.5.0
in repository yara.
commit 469bf12ca7722e275d92773d1fb0a3737142d7a2
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Fri Oct 30 19:48:31 2015 +0100
Remove sanity check introduced in previous commit.
section->size if not necessarily lesser than elf_size because sections don't always represent a chunk of data inside the ELF file. Sections of type SHT_NOBITS can have arbitrary sizes not related to the the ELF file size.
---
libyara/modules/elf.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/libyara/modules/elf.c b/libyara/modules/elf.c
index 05b9045..443958f 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) \
{ \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git
More information about the forensics-changes
mailing list