diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2008-10-12 20:54:54 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2008-10-12 20:54:54 (GMT) |
commit | 43f740ee35b452980e8d190660896a535816dfc3 (patch) | |
tree | 8ed84ae291950efd4d37a1dd553e3caac4290fc9 /src/format/elf/section.c | |
parent | c1b34ed255813ad28bf69fc28592d4cd253f7248 (diff) |
Provided default code parts to analyze.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@34 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/elf/section.c')
-rw-r--r-- | src/format/elf/section.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/format/elf/section.c b/src/format/elf/section.c index a055f47..f16e002 100644 --- a/src/format/elf/section.c +++ b/src/format/elf/section.c @@ -130,6 +130,9 @@ bool find_elf_section(const elf_format *format, const char *target, off_t *offse Elf32_Half i; Elf32_Shdr data; + /* Si on perd notre temps... */ + if (format->sec_size == 0) return false; + result = false; for (i = 0; i < format->header.e_shnum; i++) |