From: Julian Seward Date: Tue, 12 Jul 2011 06:24:23 +0000 (+0000) Subject: Ignore ELF phdrs that have a p_memsz of zero, as appears to happen X-Git-Tag: svn/VALGRIND_3_7_0~359 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3bb08f53bd5000c16f76184465174bcbe81bea9;p=thirdparty%2Fvalgrind.git Ignore ELF phdrs that have a p_memsz of zero, as appears to happen on Android. Bug 266035 comment 30. (John Reiser, jreiser@bitwagon.com) git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11878 --- diff --git a/coregrind/m_ume/elf.c b/coregrind/m_ume/elf.c index 678d16fee2..4ab8712f3e 100644 --- a/coregrind/m_ume/elf.c +++ b/coregrind/m_ume/elf.c @@ -390,7 +390,7 @@ Int VG_(load_ELF)(Int fd, const HChar* name, /*MOD*/ExeInfo* info) ESZ(Phdr) *iph = &interp->p[j]; ESZ(Addr) end; - if (iph->p_type != PT_LOAD) + if (iph->p_type != PT_LOAD || iph->p_memsz == 0) continue; if (!baseaddr_set) {