]> git.proxmox.com Git - mirror_edk2.git/commit
Change BuildGuidHob and BuildGuidDataHob to return NULL upon failure.
authorniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 9 Jun 2011 02:51:00 +0000 (02:51 +0000)
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 9 Jun 2011 02:51:00 +0000 (02:51 +0000)
commitef2635c399770673375249722ae1e121db1e9ad1
treecd69b8f8e39c811a8ff3a9468aafb04981defd68
parent10fe0d814add860a1040e648b1f5782c0de350e6
Change BuildGuidHob and BuildGuidDataHob to return NULL upon failure.
Guarantee no memory corruption in an out of memory condition even in production builds.

Signed-off-by: niruiyu
Reviewed-by: mdkinney
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11775 6f19259b-4bc3-4df7-8a09-765794883524
MdePkg/Include/Library/HobLib.h
MdePkg/Library/DxeCoreHobLib/HobLib.c
MdePkg/Library/DxeHobLib/HobLib.c
MdePkg/Library/PeiHobLib/HobLib.c