This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, COMMITTED]: Fix seg fault in elf32.em:_after_open


On Fri, Aug 20, 2010 at 8:00 AM, Nick Clifton <nickc@redhat.com> wrote:
> Hi Guys,
>
> ?Whilst working on another bug I came across a seg-fault in the
> ?_after_open() function in elf32.em. ?If the target is not an ELF
> ?binary then get_elf_backend_data will return NULL, but the code was
> ?not checking for this. ?Fixed by applying the following patch.
>
> Cheers
> ?Nick
>
> ld/ChangeLog
> 2010-08-20 ?Nick Clifton ?<nickc@redhat.com>
>
> ? ? ? ?* emultempl/elf32.em (_after_open): Check for get_elf_backend_data
> ? ? ? ?returning NULL.
>

Do you have a testcase? The problem may be more than that.


-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]