]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/CapsuleApp: Fix potential NULL pointer dereference issue
authorChen A Chen <chen.a.chen@intel.com>
Fri, 1 Feb 2019 02:06:49 +0000 (10:06 +0800)
committerLiming Gao <liming.gao@intel.com>
Sat, 2 Feb 2019 13:41:20 +0000 (21:41 +0800)
commite98212cb5d59fff8f385d9179ad7f1a3ce9cf215
treeab4f7daeb28fc5c89e82faab5fa7c738fdb03e5f
parentaad4e2ec8ffe2aae6bdcdd04f34a1d3b0bf2c4a9
MdeModulePkg/CapsuleApp: Fix potential NULL pointer dereference issue

To avoid potential NULL pointer dereference issue. Initialize them at
the beginning of the function.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Chen A Chen <chen.a.chen@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdeModulePkg/Application/CapsuleApp/CapsuleApp.c
MdeModulePkg/Application/CapsuleApp/CapsuleDump.c
MdeModulePkg/Application/CapsuleApp/CapsuleOnDisk.c