[Bug binutils/22788] AddressSanitizer: SEGV /home/ubuntu/binutils/binutils_git/binutils-gdb/bfd/libbfd.c:558 bfd_getl32

2018-03-31 Thread jeremip11 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22788

Jeremi  changed:

   What|Removed |Added

 CC||jeremip11 at gmail dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/22788] AddressSanitizer: SEGV /home/ubuntu/binutils/binutils_git/binutils-gdb/bfd/libbfd.c:558 bfd_getl32

2018-02-09 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22788

--- Comment #7 from Nick Clifton  ---

Hi JayZhang,

>Can we close the issue now and make it public?

Already done. :-)

The fix is available in the binutils development sources and on the 2.30
branch.
It will be in the next official release (either 2.30.1 or 2.31) whenever
that happens.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/22788] AddressSanitizer: SEGV /home/ubuntu/binutils/binutils_git/binutils-gdb/bfd/libbfd.c:558 bfd_getl32

2018-02-09 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22788

--- Comment #6 from cvs-commit at gcc dot gnu.org  ---
The binutils-2_30-branch branch has been updated by Nick Clifton
:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d895ef77ffc94e02e748856c2ab54f5bb8cc867e

commit d895ef77ffc94e02e748856c2ab54f5bb8cc867e
Author: Nick Clifton 
Date:   Fri Feb 9 09:28:45 2018 +

Import patch from mainline to fix possible seg-fault whilst parsing corrupt
ELF notes with extravagent alignments.

PR 22788
* elf.c (elf_parse_notes): Reject notes with excessuively large
alignments.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/22788] AddressSanitizer: SEGV /home/ubuntu/binutils/binutils_git/binutils-gdb/bfd/libbfd.c:558 bfd_getl32

2018-02-08 Thread hizhangsword at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22788

--- Comment #5 from JayZhang  ---
Hi Nick,
   I have checked commit ef135d4314fd4c2d7da66b9d7b59af4a85b0f7e6,and found the
patch worked.
   Can we close the issue now and make it public?

  Best Regards
  JayZhang

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/22788] AddressSanitizer: SEGV /home/ubuntu/binutils/binutils_git/binutils-gdb/bfd/libbfd.c:558 bfd_getl32

2018-02-08 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22788

Nick Clifton  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #4 from Nick Clifton  ---
Hi JayZhang,

  Exactly right.  The ELF note parsing code was not expecting such a large
  alignment, and that caused it to attempt to read beyond the end of the
  buffer containing the note.

  I have checked in the patch, so the problem should now be fixed.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/22788] AddressSanitizer: SEGV /home/ubuntu/binutils/binutils_git/binutils-gdb/bfd/libbfd.c:558 bfd_getl32

2018-02-08 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22788

--- Comment #3 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ef135d4314fd4c2d7da66b9d7b59af4a85b0f7e6

commit ef135d4314fd4c2d7da66b9d7b59af4a85b0f7e6
Author: Nick Clifton 
Date:   Thu Feb 8 10:28:25 2018 +

Fix a seg-fault in the ELF note parser when a note with an excessively
large alignment is encountered.

PR 22788
* elf.c (elf_parse_notes): Reject notes with excessuively large
alignments.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/22788] AddressSanitizer: SEGV /home/ubuntu/binutils/binutils_git/binutils-gdb/bfd/libbfd.c:558 bfd_getl32

2018-02-07 Thread hizhangsword at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22788

--- Comment #2 from JayZhang  ---
Hi Nick,
   The patch you provided fixed the problem. Good job!
   I tried to read the code of elf_parse_notes(),and analyze the crafted file's
structure,and found that the value of sh_addralign is 2^28;So,Is that the
invalid sh_addralign value leads to a out of bounds reading?

   Best Regards
   JayZhang

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/22788] AddressSanitizer: SEGV /home/ubuntu/binutils/binutils_git/binutils-gdb/bfd/libbfd.c:558 bfd_getl32

2018-02-06 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22788

Nick Clifton  changed:

   What|Removed |Added

 CC||nickc at redhat dot com

--- Comment #1 from Nick Clifton  ---
Created attachment 10792
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10792&action=edit
Proposed patch

Hi JayZhang,

  Thanks for reporting this bug.  I am unable to reproduce the actual failure,
  but I think that this is because I cannot build a 32-bit toolchain with 
  address sanitization enabled.  (This is a failure with my build environment
  not the binutils).

  In the meantime though, please could you try out the uploaded patch and let
  me know if it fixes the problem.  Thanks.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils