]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
stand/efihttp: Work around a bug in edk2 http instance reconfiguration
authorscottph <scottph@FreeBSD.org>
Wed, 9 Sep 2020 16:35:51 +0000 (16:35 +0000)
committerscottph <scottph@FreeBSD.org>
Wed, 9 Sep 2020 16:35:51 +0000 (16:35 +0000)
commit4e82e3cbcb04f97b1ea6ed637a72462a23160cc1
treef7be217a6d0245081f22202c335f0156ad47cb0e
parent61aff6d778dd30e9615548ad1f8cf96cf1af9610
stand/efihttp: Work around a bug in edk2 http instance reconfiguration

A bug in the EFI HTTP driver of TianoCore EDK2 causes memory
corruption when an http instance that uses tls is reconfigured,
leading to a crash.

Work around this by forcing a new http instance for each request
instead of reconfiguring the existing one.

The upstream bug report is https://bugzilla.tianocore.org/show_bug.cgi?id=1917

Submitted by: bcran
Reviewed By: imp, kevans, tsoome
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D21281
stand/efi/libefi/efihttp.c