]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
stand/efihttp: Work around a bug in edk2 http instance reconfiguration
authorD Scott Phillips <scottph@FreeBSD.org>
Wed, 9 Sep 2020 16:35:51 +0000 (16:35 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Fri, 8 Oct 2021 01:15:59 +0000 (20:15 -0500)
commitb87ad4f2db6dfc3b66464a689c399f666fa64d39
tree26bcd31ba20d0235ac284b54afd5945466adb045
parentf7ad7b5a1e5da5fa611e578dfa978de66cc6e87b
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

(cherry picked from commit d455cd5ac36f4c1ac76f04e2c2bb4bfb00fe8bcd)
stand/efi/libefi/efihttp.c