Files
ipxe/src/include
Michael Brown 5b41b9a80f [efi] Nullify interfaces and leak memory on uninstallation failure
The UEFI specification allows uninstallation of a protocol interface
to fail.  There is no sensible way for code to react to this, since
uninstallation is likely to be taking place on a code path that cannot
itself fail (e.g. a code path that is itself a failure path).

Where the protocol structure exists within a dynamically allocated
block of memory, this leads to possible use-after-free bugs.  Work
around this unfortunate design choice by nullifying the protocol
(i.e. overwriting the method pointers with no-ops) and leaking the
memory containing the protocol structure.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
2020-10-26 15:24:00 +00:00
..
2014-07-29 15:20:49 +01:00
2015-03-02 16:35:37 +00:00
2005-03-08 18:53:11 +00:00
2005-03-08 18:53:11 +00:00
2017-04-10 16:12:53 +01:00
2015-03-02 19:42:48 +00:00
2015-03-02 16:35:37 +00:00
2005-03-08 18:53:11 +00:00
2016-05-04 16:01:33 +01:00
2005-03-08 18:53:11 +00:00
2005-03-08 18:53:11 +00:00
2007-07-14 15:42:26 +01:00
2017-04-10 16:12:53 +01:00
2005-03-08 18:53:11 +00:00