aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile-mem.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-10-10 18:18:18 +1030
committerAlan Modra <amodra@gmail.com>2023-10-10 22:17:29 +1030
commitae0d827fa483c4e569803d99f8dff14794c63a17 (patch)
treec2f8e9c4195d771ce9512621c04f92a483ec6295 /gdb/symfile-mem.c
parentf22f27f46c756e753ab6dcc4df820fdd81e26367 (diff)
downloadgdb-ae0d827fa483c4e569803d99f8dff14794c63a17.zip
gdb-ae0d827fa483c4e569803d99f8dff14794c63a17.tar.gz
gdb-ae0d827fa483c4e569803d99f8dff14794c63a17.tar.bz2
asan: buffer overflow in elf32_arm_get_synthetic_symtab
Guard against fuzzed files where .plt size isn't commensurate with plt relocations. * elf32-arm.c (elf32_arm_plt0_size): Add data_size param. Return -1 if data_size is too small. (elf32_arm_plt_size): Likewise. Delete temp var. Formatting. (elf32_arm_get_synthetic_symtab): Adjust to suit.
Diffstat (limited to 'gdb/symfile-mem.c')
0 files changed, 0 insertions, 0 deletions