mirror_edk2/MdeModulePkg
Ruiyu Ni 00e39b0939 MdeModulePkg/UefiBootManagerLib: Initialize Handle before using it
BmExpandMediaDevicePath contains a bug that it uses the
uninitialized Handle.

Since the function is called when the Handle supports BlockIo
or SimpleFileSystem, when there is no SimpleFileSystem installed
on the Handle, BlockIo is *guaranteed* to be installed on the Handle.
The fix initializes the Handle by locating the BlockIo protocol
from the device path.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Sunny Wang <sunnywang@hpe.com>
2017-02-08 17:46:31 +08:00
..
Application MdeModulePkg/CapsuleApp: Dump capsule name in record. 2016-12-23 10:08:04 +08:00
Bus MdeModulePkg: Remove superfluous return statements 2017-01-20 15:29:18 +08:00
Core MdeModulePkg: Fix some typos of "according" 2017-02-08 14:48:02 +08:00
Include MdeModulePkg/NonDiscoverableDeviceRegistrationLib: Fix coding style issues 2016-12-20 10:51:25 +08:00
Library MdeModulePkg/UefiBootManagerLib: Initialize Handle before using it 2017-02-08 17:46:31 +08:00
Logo MdeModulePkg/Logo: rebase to ARRAY_SIZE() 2016-10-27 11:10:57 +02:00
Universal MdeModulePkg: Fix some typos of "according" 2017-02-08 14:48:02 +08:00
Contributions.txt */Contributions.txt: Update example email address 2015-02-03 17:29:14 +00:00
License.txt Update copyright format 2012-04-24 06:49:39 +00:00
MdeModulePkg.dec MdeModulePkg: Update PcdSmbiosDocRev to 0x1 for SMBIOS spec 3.1.1 2017-01-24 18:11:51 +08:00
MdeModulePkg.dsc MdeModulePkg: implement generic PCI I/O driver for non-discoverable devices 2016-12-07 09:45:56 +00:00
MdeModulePkg.uni MdeModulePkg: Add missing info string for PCDs 2016-12-14 21:34:46 +08:00
MdeModulePkgExtra.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00