diff --git a/formats/elf32.c b/formats/elf32.c index b587d7a..9a2f51b 100644 --- a/formats/elf32.c +++ b/formats/elf32.c @@ -331,8 +331,10 @@ int elf32_extract(FILE *in, binfile_imgcb_t cb, void *user_data) Elf32_Shdr *s = &info.file_shdrs[i]; if (s->sh_type == SHT_PROGBITS && s->sh_flags & SHF_ALLOC && - feed_section(&info, in, s, cb, user_data) < 0) + feed_section(&info, in, s, cb, user_data) < 0) { ret = -1; + break; + } } if (info.string_tab)