https://sourceware.org/bugzilla/show_bug.cgi?id=21786
--- Comment #1 from Ned Williamson ---
Created attachment 10270
--> https://sourceware.org/bugzilla/attachment.cgi?id=10270&action=edit
suggested patch
Here, I attach my suggested patch, fixing all places where I was able to
trigger the bug
https://sourceware.org/bugzilla/show_bug.cgi?id=21786
--- Comment #2 from Ned Williamson ---
Created attachment 10271
--> https://sourceware.org/bugzilla/attachment.cgi?id=10271&action=edit
crash state
Here is the crashing state when inspecting the crash using ASAN.
--
You are receiving this
https://sourceware.org/bugzilla/show_bug.cgi?id=21786
--- 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=29866fa186ee3ebda5242221607dba360b2e541e
commit 29866fa186ee3ebda5242221607
https://sourceware.org/bugzilla/show_bug.cgi?id=21786
Nick Clifton changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
CC|
https://sourceware.org/bugzilla/show_bug.cgi?id=21786
--- Comment #5 from Ned Williamson ---
Hi Nick, thanks for the great patch! It's much better than the suggested one.
Thank you for pointing out the specification.
I did see a crash in coff64-rs6000 as well, so that may need to use the new
saf
https://sourceware.org/bugzilla/show_bug.cgi?id=21786
--- Comment #6 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=6c4e7b6bfbc4679f695106de2817ecf02b27c8be
commit 6c4e7b6bfbc4679f695106de281
https://sourceware.org/bugzilla/show_bug.cgi?id=21786
--- Comment #7 from Nick Clifton ---
Hi Ned,
> I did see a crash in coff64-rs6000 as well, so that may need to use the new
> safe functions.
Ah - thanks for pointing that out. I have now checked in an additional patch
to cover coff64-rs6000
https://sourceware.org/bugzilla/show_bug.cgi?id=21786
--- Comment #8 from cvs-commit at gcc dot gnu.org ---
The binutils-2_29-branch branch has been updated by Nick Clifton
:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7e693dd5cede637daf4456a2a8f207be1044c6e8
commit 7e693dd5cede6
https://sourceware.org/bugzilla/show_bug.cgi?id=21786
--- Comment #9 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=677bd4c69d0eda4f2ae635d793f23c0b1413a9e9
commit 677bd4c69d0eda4f2ae635d793f23