]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/DxeCapsuleLibFmp: Add missing NULL pointer check.
authorWei6 Xu <wei6.xu@intel.com>
Thu, 27 Jun 2019 08:43:06 +0000 (16:43 +0800)
committerZhang, Chao B <chao.b.zhang@intel.com>
Fri, 28 Jun 2019 04:31:48 +0000 (12:31 +0800)
commitfda8482df707dd4f3880e5060979f8df86b86e12
treef8a45d6bdc9e184c856ae2c015b1e34491917712
parent104a1aa19bbb79418883dc6cc3cf0720d9f36119
MdeModulePkg/DxeCapsuleLibFmp: Add missing NULL pointer check.

Add missing NULL pointer check for CapsuleNameBufStart.
Also add comments to notice that capsule name integrity check assumes
the capsule has been validated by IsValidCapsuleHeader().

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Chao B Zhang <chao.b.zhang@intel.com>
Signed-off-by: Wei6 Xu <wei6.xu@intel.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
Reviewed-by: Chao B Zhang <chao.b.zhang@intel.com>
MdeModulePkg/Library/DxeCapsuleLibFmp/CapsuleOnDisk.c