diff options
author | Alan Modra <amodra@gmail.com> | 2019-11-19 11:38:36 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-11-19 12:31:22 +1030 |
commit | f14080d440fab16dcb498c1a46864a5a1be37aaa (patch) | |
tree | b5013d182ac1d7722342c1ce5fa4d93c6ce3fa02 /gdb/x86-nat.c | |
parent | df56ecde8aeed75693f49c9e290427ee5030b05c (diff) | |
download | gdb-f14080d440fab16dcb498c1a46864a5a1be37aaa.zip gdb-f14080d440fab16dcb498c1a46864a5a1be37aaa.tar.gz gdb-f14080d440fab16dcb498c1a46864a5a1be37aaa.tar.bz2 |
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.
Diffstat (limited to 'gdb/x86-nat.c')
0 files changed, 0 insertions, 0 deletions