]> git.proxmox.com Git - mirror_edk2.git/commit
MdePkg: Check input Ptrs in GetSectionFromAnyFvByFileType
authorDandan Bi <dandan.bi@intel.com>
Mon, 19 Nov 2018 01:50:22 +0000 (09:50 +0800)
committerLiming Gao <liming.gao@intel.com>
Wed, 21 Nov 2018 05:01:03 +0000 (13:01 +0800)
commit59222fe90bc93af9afd5204dbd75fd434820018c
tree5c4992c0c47ddd381131ef1cb753a2112c10d905
parentd8e702693a8c292220131dc4234a36e2c9fff614
MdePkg: Check input Ptrs in GetSectionFromAnyFvByFileType

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1337

In function GetSectionFromAnyFvByFileType, the input parameter "Buffer"
and "size" should not be NULL, so add ASSERT here to avoid any checker
report that the NULL pointer may be used.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdePkg/Library/DxeServicesLib/DxeServicesLib.c