Fix potential buffer overruns when creating DLLs.
authorNick Clifton <nickc@redhat.com>
Wed, 27 Apr 2022 07:35:18 +0000 (08:35 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 27 Apr 2022 07:35:18 +0000 (08:35 +0100)
commit639d467b08f2b581a911dc24f67e8c77a3a05e9f
treed22dfb31e586966103767c6d8586d7bdb6ab3089
parent16538271c82db0ba5679344c4107564b70a756a1
Fix potential buffer overruns when creating DLLs.

PR 29006
* pe-dll.c (make_head): Use asprintf to allocate and populate a
buffer containing the temporary name.
(make_tail, make_one, make_singleton_name_thunk): Likewise.
(make_import_fixup_mark, make_import_fixup_entry): Likewise.
(make_runtime_pseudo_reloc): Likewise.
(pe_create_runtime_relocator_reference): Likewise.
ld/ChangeLog
ld/pe-dll.c