This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH, COMMITTED]: Fix seg fault in elf32.em:_after_open
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 20 Aug 2010 08:41:40 -0700
- Subject: Re: [PATCH, COMMITTED]: Fix seg fault in elf32.em:_after_open
- References: <m3lj815nxt.fsf@redhat.com>
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.