summaryrefslogtreecommitdiffstats
path: root/src/nm.c
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2014-12-26 16:12:52 +0100
committerMark Wielaard <[email protected]>2015-01-12 22:04:44 +0100
commit0b799ad9822f4866aaf1eb34564681e83bdaf9f1 (patch)
treea939b5982cf0bcb48630e4f5dd849db17b2d4285 /src/nm.c
parent68588d628a464698031323d8eb42a961c0846ba9 (diff)
nm: Stop processing ar members on first invalid offset.
Otherwise we will keep looping on that same invalid entry. https://bugzilla.redhat.com/show_bug.cgi?id=1170810 Reported-by: Alexander Cherepanov <[email protected]> Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'src/nm.c')
-rw-r--r--src/nm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm.c b/src/nm.c
index 4f2e0e78..6a9f8e1f 100644
--- a/src/nm.c
+++ b/src/nm.c
@@ -468,7 +468,7 @@ handle_ar (int fd, Elf *elf, const char *prefix, const char *fname,
{
error (0, 0, gettext ("invalid offset %zu for symbol %s"),
arsym->as_off, arsym->as_name);
- continue;
+ break;
}
printf (gettext ("%s in %s\n"), arsym->as_name, arhdr->ar_name);