Remove an abort() from the readelf sources.
authorNick Clifton <nickc@redhat.com>
Tue, 17 Apr 2018 15:15:03 +0000 (16:15 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 17 Apr 2018 15:15:03 +0000 (16:15 +0100)
PR 26063
* readelf.c (print_symbol): If the width is zero, return straight
away.

binutils/ChangeLog
binutils/readelf.c

index 5219cb129e9edd0e7eda2f95023e406302c7ee34..14a991bc7cdde8f01b244eae69e73f4d99e03d03 100644 (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.
index cf395dbe2d6998abc481a918d9f5370441c02200..528954cc6e1af2e375445e31f4160964c54ea5fe 100644 (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.