Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 846b1652d99a60d91805648d7e395f084e097465
      
https://github.com/tianocore/edk2/commit/846b1652d99a60d91805648d7e395f084e097465
  Author: Gao, Zhichao <zhichao....@intel.com>
  Date:   2019-06-26 (Wed, 26 Jun 2019)

  Changed paths:
    M MdeModulePkg/Universal/CapsulePei/UefiCapsule.c

  Log Message:
  -----------
  MdeModulePkg/CapsulePei: Add memory pointer check

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

Before use the memory that is allocated through AllocateZeroPool,
we should check the memory pointer is valid to avoid using the
NULL pointer.
Add check for VariableArrayAddress that is returned from
GetScatterGatherHeadEntries. If it is NULL, directly return
the error status.

Cc: Jian J Wang <jian.j.w...@intel.com>
Cc: Hao A Wu <hao.a...@intel.com>
Cc: Ray Ni <ray...@intel.com>
Cc: Star Zeng <star.z...@intel.com>
Signed-off-by: Zhichao Gao <zhichao....@intel.com>
Reviewed-by: Hao A Wu <hao.a...@intel.com>




_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to