edk2/ShellPkg/Library/UefiHandleParsingLib
Bob Morgan c4d29cb621 ShellPkg/UefiHandleParsingLib: support handle list growth
Refactor GetHandleListByProtocol() to support
additions to the handle list during its execution.
Replace LocateHandle() with LocateHandleBuffer() to
avoid the possibility that the buffer allocated for
LocateHandle() is too small if additional handles
are added during GetHandleListByProtocol() execution.

Note that the previous implementation did not detect
the handle list growth and would cause memory
corruption when writing the terminating NULL handle
to the allocated buffer.

Signed-off-by: Bob Morgan <bobm@nvidia.com>
2026-03-26 17:36:35 +00:00
..
UefiHandleParsingLib.c ShellPkg/UefiHandleParsingLib: support handle list growth 2026-03-26 17:36:35 +00:00
UefiHandleParsingLib.h ShellPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
UefiHandleParsingLib.inf ShellPkg/Library: Remove ScsiPassThruProtocolGuid 2025-11-23 18:40:59 +00:00
UefiHandleParsingLib.uni ShellPkg/Library: Deprecate EFI_DEVICE_IO_PROTOCOL 2025-09-05 13:50:50 +00:00