]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg CapsuleApp: Check Buffer against NULL before freeing it
authorStar Zeng <star.zeng@intel.com>
Thu, 26 Apr 2018 09:16:47 +0000 (17:16 +0800)
committerStar Zeng <star.zeng@intel.com>
Tue, 8 May 2018 03:16:49 +0000 (11:16 +0800)
If the capsule from command line is not present,
Buffer will be random value when freeing it in DumpCapsule(),
then ASSERT will happen or other memory pool may be freed.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>

No differences found