bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: crash accessing address 0 in readelf (binutils-2.2.7a)


From: Nick Clifton
Subject: Re: crash accessing address 0 in readelf (binutils-2.2.7a)
Date: Tue, 31 Jul 2018 17:40:48 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Hi Laurent,

> I've come across an issue in readelf (binutils-2.2.7a), as follows:

Thanks for reporting this problem.  In the future, would you mind using
the binutils bugzilla system as this allows us to keep a track of the
bug and fixes that we create for it:

https://sourceware.org/bugzilla/enter_bug.cgi


> Even if the function slurp_hppa_unwind_table() fails, the function 
> dump_hppa_unwind() 
> is executed. In dump_hppa_unwind():

Your fix should work, but I think that it would be cleaner to update 
slurp_hppa_unwind_table
instead.  Would you mind checking this patch and letting me know if it works ?

diff --git a/binutils/readelf.c b/binutils/readelf.c
index 90dbdf7e2b..34acf6346a 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -7934,6 +7934,8 @@ slurp_hppa_unwind_table (Filedata *                  
filedata,
   Elf_Internal_Sym * sym;
   const char * relname;
 
+  aux->table_len = 0;
+
   /* First, find the starting address of the segment that includes
      this section.  */
   if (filedata->file_header.e_phnum)


> I can give you the input to trigger the bug if you'd like. I tried to attach 
> it to this email but could not as your server thinks there is malware in it...

he he.  Well you should be able to upload it to the bugzilla system if you use 
that.

Cheers
  Nick



reply via email to

[Prev in Thread] Current Thread [Next in Thread]