aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2025-09-25 08:22:24 +0930
committerAlan Modra <amodra@gmail.com>2025-09-25 10:10:47 +0930
commit047435dd988a3975d40c6626a8f739a0b2e154bc (patch)
treef7d2e3c9a35472d853a485708282c4bb2af899cb /gdb/python/python.c
parent4fab244ece36dc7e30f3900102a6f061daeb47e4 (diff)
downloadbinutils-047435dd988a3975d40c6626a8f739a0b2e154bc.zip
binutils-047435dd988a3975d40c6626a8f739a0b2e154bc.tar.gz
binutils-047435dd988a3975d40c6626a8f739a0b2e154bc.tar.bz2
PR 33452 SEGV in bfd_elf_gc_record_vtentry
Limit addends on vtentry relocs, otherwise ld might attempt to allocate a stupidly large array. This also fixes the expression overflow leading to pr33452. A vtable of 33M entries on a 64-bit host is surely large enough, especially considering that VTINHERIT and VTENTRY relocations are to support -fvtable-gc that disappeared from gcc over 20 years ago. PR ld/33452 * elflink.c (bfd_elf_gc_record_vtentry): Sanity check addend.
Diffstat (limited to 'gdb/python/python.c')
0 files changed, 0 insertions, 0 deletions