From: Nick Clifton Date: Tue, 17 Apr 2018 15:15:03 +0000 (+0100) Subject: Remove an abort() from the readelf sources. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=56d8f8a952f7565e8c2232ba57abb9f8d114ad70;p=binutils-gdb.git Remove an abort() from the readelf sources. PR 26063 * readelf.c (print_symbol): If the width is zero, return straight away. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 5219cb129e9..14a991bc7cd 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,9 @@ 2018-04-17 Nick Clifton + PR 26063 + * readelf.c (print_symbol): If the width is zero, return straight + away. + PR 23064 * dwarf.c (process_cu_tu_index): Test for a potential buffer overrun before copying signature pointer. diff --git a/binutils/readelf.c b/binutils/readelf.c index cf395dbe2d6..528954cc6e1 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -515,7 +515,8 @@ print_symbol (signed int width, const char *symbol) width = - width; extra_padding = TRUE; } - assert (width != 0); + else if (width == 0) + return 0; if (do_wide) /* Set the remaining width to a very large value.