[Bug binutils/25961] buffer overflow in coff_swap_aux_in

2020-05-11 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25961

Alan Modra  changed:

   What|Removed |Added

Summary|[nm] crash at   |buffer overflow in
   |_IO_flush_all_lockp at  |coff_swap_aux_in
   |genops.c:779|

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


[Bug binutils/25961] buffer overflow in coff_swap_aux_in

2020-05-11 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=25961

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

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

commit 4d5acb1ea570f04f8020338bad6918dfe76b785c
Author: Alan Modra 
Date:   Mon May 11 18:00:31 2020 +0930

PR25961, buffer overflow in coff_swap_aux_in

PR 25961
* coffgen.c (coff_get_normalized_symtab): Check that buffer
contains required number of auxents before processing any auxent.
* coffswap.h (coff_swap_aux_in ): Only swap in extended
file name from auxents for PE.

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


[Bug binutils/25961] buffer overflow in coff_swap_aux_in

2020-05-11 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25961

Alan Modra  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
   Target Milestone|--- |2.35
 Resolution|--- |FIXED

--- Comment #4 from Alan Modra  ---
Fixed on master.

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


[Bug gold/25975] New: clang -fsanitze=adderss prints waring only with gold

2020-05-11 Thread dilyan.palauzov at aegee dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=25975

Bug ID: 25975
   Summary: clang -fsanitze=adderss prints waring only with gold
   Product: binutils
   Version: 2.35 (HEAD)
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gold
  Assignee: ccoutant at gmail dot com
  Reporter: dilyan.palauzov at aegee dot org
CC: ian at airs dot com
  Target Milestone: ---

I have clang and lld 10.0, ld.bfd 2.34.50.20200506, ld.gold 1.16 /
2.34.50.20200506 and i.c:

#include 
#include 

int main() {
  bool b = 99;
  printf("a %i\n", b);
}

The question is, why only the last call emits a warning:
$ clang -fsanitize=address -fuse-ld=bfd  -o i i.c
$ clang -fsanitize=address -fuse-ld=lld  -o i i.c
$ clang -fsanitize=address -fuse-ld=gold -o i i.c
/usr/local/bin/ld.gold: warning: Cannot export local symbol
'__asan_extra_spill_
area'

See also https://sourceware.org/bugzilla/show_bug.cgi?id=25940.

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


[Bug ld/25940] ld.bfd, clang’s ubsan, shared libraries, and virtual tables do not work together

2020-05-11 Thread dilyan.palauzov at aegee dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=25940

--- Comment #5 from dilyan.palauzov at aegee dot org  ---
I asked at https://sourceware.org/bugzilla/show_bug.cgi?id=25975 why gold
prints “/usr/local/bin/ld.gold: warning: Cannot export local symbol
'__asan_extra_spill_
area'” when used by clangs’ address sanitizer.

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