Prevent a potential use-after-fee memory corruption bug in the linker (for PE format...
authorNick Clifton <nickc@redhat.com>
Mon, 18 May 2020 09:28:52 +0000 (10:28 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 18 May 2020 09:28:52 +0000 (10:28 +0100)
commit5e365e474b7561318ddb1a107f05cf0c002e8284
tree20043016f5da4a290056532ed6d88a0dc264c3a1
parentd402189f2faa0aaa9fb8ad4669fdf0059946cd8a
Prevent a potential use-after-fee memory corruption bug in the linker (for PE format files).

PR 25993
* emultempl/pe.em (_after_open): Check for duplicate filename
pointers before renaming the dll.
* emultempl/pep.em (_after_open): Likewise.
ld/ChangeLog
ld/emultempl/pe.em
ld/emultempl/pep.em