summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/xhci.c
diff options
context:
space:
mode:
authorjca <jca@openbsd.org>2019-03-01 16:46:11 +0000
committerjca <jca@openbsd.org>2019-03-01 16:46:11 +0000
commit5a9013c5cbe8ffb15a4268249317603de631fd47 (patch)
treef1b6cdeeb17a64487fc5b75abad338c7c0edbec5 /sys/dev/usb/xhci.c
parentde-obfuscate by expanding three useless macros; no functional change; (diff)
downloadwireguard-openbsd-5a9013c5cbe8ffb15a4268249317603de631fd47.tar.xz
wireguard-openbsd-5a9013c5cbe8ffb15a4268249317603de631fd47.zip
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/dev/usb/xhci.c')
0 files changed, 0 insertions, 0 deletions