audk/MdeModulePkg
Ronald Cron df473cc1fc MdeModulePkg/PartitionDxe: Fix media probe
The call in ProbeMediaStatus() to the ReadDisk() function of the
EFI_DISK_IO_PROTOCOL interface implemented in DiskIoDxe/DiskIo.c
crashed in DiskIo2ReadWriteDisk() because of the NULL value of
the destination buffer pointer.

Pass the address of a buffer in the stack instead of a NULL
pointer.

In addition to avoiding the crash, that way, the media probe does not
depend anymore on the way the EFI_DISK_IO_PROTOCOL implementation deals
with a NULL value of the destination buffer pointer as the UEFI
specification does not specify the expected behaviour.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ronald Cron <Ronald.Cron@arm.com>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>



git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17859 6f19259b-4bc3-4df7-8a09-765794883524
2015-07-07 11:26:27 +00:00
..
Application MdeModulePkg/Application/MemoryProfileInfo: Use safe string functions to refine code. 2015-07-01 08:03:50 +00:00
Bus MdeModulePkg/AtaBus: remove TPer Reset operation in DriverBindingStart 2015-06-26 08:42:17 +00:00
Core MdeModulePkg: Refine code to make it more readable. 2015-07-03 01:39:06 +00:00
Include MdeModulePkg: Add HttpLib. 2015-07-07 09:29:00 +00:00
Library MdeModulePkg: Add HttpLib. 2015-07-07 09:29:00 +00:00
Logo MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
Universal MdeModulePkg/PartitionDxe: Fix media probe 2015-07-07 11:26:27 +00: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 Ip4Dxe driver to support Ip4Config2 protocol, 2015-07-07 08:19:55 +00:00
MdeModulePkg.dsc MdeModulePkg: Add AuthVariableLib LibraryClass 2015-07-01 03:04:18 +00:00
MdeModulePkg.uni MdeModulePkg: Add PcdMaxAuthVariableSize declaration. 2015-06-10 07:51:16 +00:00
MdeModulePkgExtra.uni MdeModulePkg: INF/DEC file updates to EDK II packages 2014-08-28 06:55:48 +00:00