|
From: | cvs-commit at gcc dot gnu.org |
Subject: | [Bug ld/31009] regression: assertion fail ../../bfd/merge.c:243 |
Date: | Thu, 09 Nov 2023 16:44:52 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=31009 --- Comment #12 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Michael Matz <matz@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=836654b1177ab305c36fe7319f08f0ad5d4fac1b commit 836654b1177ab305c36fe7319f08f0ad5d4fac1b Author: Michael Matz <matz@suse.de> Date: Tue Nov 7 16:54:44 2023 +0100 ld: Avoid overflows in string merging as the bug report shows we had an overflow in the test if hash table resizing is needed. Reorder the expression to avoid that. There's still a bug somewhere in gracefully handling failure in resizing (e.g. out of memory), but this pushes the boundary for that occurring somewhen into the future and immediately helps the reporter. bfd/ PR ld/31009 * merge.c (NEEDS_RESIZE): New macro avoiding overflow. (sec_merge_maybe_resize): Use it. (sec_merge_hash_insert): Ditto. -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |