From 1445e590be067844a66578f2df97ab532c1f91ac Mon Sep 17 00:00:00 2001 From: pixel Date: Fri, 23 Jul 2004 09:54:25 +0000 Subject: Bug fix in elf parsing... --- lib/Input.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Input.cc b/lib/Input.cc index 992b39a..88f9343 100644 --- a/lib/Input.cc +++ b/lib/Input.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Input.cc,v 1.45 2004-07-17 14:48:33 pixel Exp $ */ +/* $Id: Input.cc,v 1.46 2004-07-23 09:54:25 pixel Exp $ */ #include #include @@ -337,6 +337,8 @@ void Archive::create() throw (GeneralException) { for (i = 0; i < head.e_shnum; i++) { archive->read(&sec, sizeof(elf_section_t)); archive->seek(head.e_shentsize - sizeof(elf_section_t), SEEK_CUR); + if (sec.sh_type == 8) + continue; cur_end = sec.sh_offset + sec.sh_size; if (cur_end > max_end) max_end = cur_end; -- cgit v1.2.3