Remove an abort() from the readelf sources.

PR 26063
	* readelf.c (print_symbol): If the width is zero, return straight
	away.
This commit is contained in:
Nick Clifton 2018-04-17 16:15:03 +01:00
parent 6327533b1f
commit 56d8f8a952
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2018-04-17 Nick Clifton <nickc@redhat.com>
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.

View File

@ -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.