diff options
author | Alan Modra <amodra@gmail.com> | 2023-10-10 18:18:18 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-10-10 22:17:29 +1030 |
commit | ae0d827fa483c4e569803d99f8dff14794c63a17 (patch) | |
tree | c2f8e9c4195d771ce9512621c04f92a483ec6295 /gdb | |
parent | f22f27f46c756e753ab6dcc4df820fdd81e26367 (diff) | |
download | gdb-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')
0 files changed, 0 insertions, 0 deletions