https://sourceware.org/bugzilla/show_bug.cgi?id=32657

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at klomp dot org
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
This is almost completely identical to bug #32657 with the same analysis and
identical solution (just in print_string_section instead of dump_data_section).

diff --git a/src/readelf.c b/src/readelf.c
index 3991cda81df2..47888d45f802 100644
--- a/src/readelf.c
+++ b/src/readelf.c
@@ -13377,7 +13377,7 @@ print_string_section (Elf_Scn *scn, const GElf_Shdr
*shdr, const char *name)
                        _("Couldn't uncompress section"),
                        elf_ndxscn (scn));
            }
-         else if (startswith (name, ".zdebug"))
+         else if (name && startswith (name, ".zdebug"))
            {
              if (elf_compress_gnu (scn, 0, 0) < 0)
                printf ("WARNING: %s [%zd]\n",

*** This bug has been marked as a duplicate of bug 32656 ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to