https://sourceware.org/bugzilla/show_bug.cgi?id=25197
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Alan Modra <amo...@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f14080d440fab16dcb498c1a46864a5a1be37aaa commit f14080d440fab16dcb498c1a46864a5a1be37aaa Author: Alan Modra <amo...@gmail.com> Date: Tue Nov 19 11:38:36 2019 +1030 PR25197, assertion fail coffgen.c The testcase in this PR triggered "BFD_ASSERT (p2->is_sym)" by sneakily generating a C_FILE sym whose value pointed into auxents. The fix then is in the last changed line of this patch, to check p->is_sym as well as p->u.syment.n_sclass. The other changes fix various overflow checks that weren't as solid as they could be. PR 25197 * coffgen.c (coff_find_nearest_line_with_names): Check that C_FILE u.syment.n_value does point at another C_FILE sym and not into some auxent that happens to look like a C_FILE. Properly check for integer overflow and avoid possible pointer wrap-around. Simplify pr17512 checks. -- You are receiving this mail because: You are on the CC list for the bug.