PR25961, buffer overflow in coff_swap_aux_in
authorAlan Modra <amodra@gmail.com>
Mon, 11 May 2020 08:30:31 +0000 (18:00 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 11 May 2020 08:41:26 +0000 (18:11 +0930)
commit4d5acb1ea570f04f8020338bad6918dfe76b785c
treef67454d0a28ddbc36215ff1080437a8c1c02c0d3
parentb59cca2581498c37fd79292deef718b2bfce8117
PR25961, buffer overflow in coff_swap_aux_in

PR 25961
* coffgen.c (coff_get_normalized_symtab): Check that buffer
contains required number of auxents before processing any auxent.
* coffswap.h (coff_swap_aux_in <C_FILE>): Only swap in extended
file name from auxents for PE.
bfd/ChangeLog
bfd/coffgen.c
bfd/coffswap.h