Fix a potential buffer overrun qwhen writing out PE aux entries.
authorNick Clifton <nickc@redhat.com>
Tue, 16 Mar 2021 12:44:50 +0000 (12:44 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 16 Mar 2021 12:44:50 +0000 (12:44 +0000)
commit012d44268695f1c5d4e2e019c610c8b99bd7e553
tree3edc46955760196226b70e7e73cbf0d9fc904001
parent7807d76a1cc193984c1bdfab456df97632ac721f
Fix a potential buffer overrun qwhen writing out PE aux entries.

* peXXigen.c (_bfd_XXi_swap_aux_out): Avoid potential buffer
overrun by using sizeof of the destination x_fname field as the
limit for a memcpy.

* coff/internal.h (struct internal_auxent): Fix a couple of typos
in comment describing the x_fname field.
bfd/ChangeLog
bfd/peXXigen.c
include/ChangeLog
include/coff/internal.h