diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2019-03-01 16:46:12 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2019-03-01 16:46:12 +0000 |
commit | adf8987b882040452954d4ce564c08b60087b37a (patch) | |
tree | 8f918e673041a34ed55115a12184db86d2e71dfb /sys | |
parent | 51b117799e9ea8f0dc09fc07892f02b56c9e4fe6 (diff) |
Fix a crash: don't assume that all input files are ELF objects
ld(1) would try to free uninitialized memory when used with -r -b binary
<fontfile> by ports/textproc/mupdf. Perform the same bfd type check
as bfd_elf_match_symbols_in_sections(). Fix found the hard way,
cheese and wine sponsor: miod. Almost identical fix already present
upstream.
Also set the freed pointer to NULL, just in case.
ok tb@ sthen@
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions