diff options
author | Ronald Cron <Ronald.Cron@arm.com> | 2015-07-07 11:26:27 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@Edk2> | 2015-07-07 11:26:27 +0000 |
commit | df473cc1fc9acd1a623ec7e05276f2f0635c19d2 (patch) | |
tree | 85da13d88ce77e05ee4ac3cacc55859c9f3f99c0 /BaseTools/Source/Python/UPT/Library/CommentGenerating.py | |
parent | c3675f6d6180b2a49fe9fa589662bacb64f6a4f3 (diff) | |
download | edk2-platforms-df473cc1fc9acd1a623ec7e05276f2f0635c19d2.tar.xz |
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
Diffstat (limited to 'BaseTools/Source/Python/UPT/Library/CommentGenerating.py')
0 files changed, 0 insertions, 0 deletions