diff options
author | Alan Modra <amodra@gmail.com> | 2019-12-19 21:46:01 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-12-19 21:52:47 +1030 |
commit | 228c8f4be0c428369ec6b68e25696863d1e62ed7 (patch) | |
tree | a69cb8af2acba328adf7cf8e59a5ccfab599b288 /bfd/ChangeLog | |
parent | f00901886d0acb7a4d4b177a5cabe8bd9ca2307b (diff) | |
download | gdb-228c8f4be0c428369ec6b68e25696863d1e62ed7.zip gdb-228c8f4be0c428369ec6b68e25696863d1e62ed7.tar.gz gdb-228c8f4be0c428369ec6b68e25696863d1e62ed7.tar.bz2 |
xcoff slurp_armap bounds checking
"count * 8 >= size" might overflow, "count >= size / 8" doesn't.
* coff-rs6000.c (_bfd_xcoff_slurp_armap): Don't overflow when
checking symbol count against section size. Guard against strlen
running off end of buffer by allocating one more byte and zeroing.
* coff64-rs6000.c (xcoff64_slurp_armap): Likewise.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 302ee5e..dc264de 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,12 @@ 2019-12-18 Alan Modra <amodra@gmail.com> + * coff-rs6000.c (_bfd_xcoff_slurp_armap): Don't overflow when + checking symbol count against section size. Guard against strlen + running off end of buffer by allocating one more byte and zeroing. + * coff64-rs6000.c (xcoff64_slurp_armap): Likewise. + +2019-12-18 Alan Modra <amodra@gmail.com> + * elf32-ppc.c (ppc_elf_get_synthetic_symtab): Use size_t for vars. * elf64-ppc.c (sym_exists_at): Use size_t for lo, hi and mid. |