]> git.proxmox.com Git - mirror_edk2.git/commit
FmpDevicePkg/FmpDxe: Fix uninitialized pointer dereference
authorKun Qin <kuqin@microsoft.com>
Wed, 18 Mar 2020 06:12:27 +0000 (14:12 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 6 May 2020 03:04:17 +0000 (03:04 +0000)
commit55d6e39f72ba2003ef59aac91af34e96a09060db
tree59ad9a310ec8acdf69bbbc3126cb0f8473f06b6e
parent8dd962a657b28d9db65ed7a35817a4b82f06301a
FmpDevicePkg/FmpDxe: Fix uninitialized pointer dereference

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

Zero the allocated buffer in case GetImageInfo `continue` in the middle of
a loop. This will cause unexpected GetImageInfo failure not clearing the
corresponding entry and lead to GP faults when dereferencing this entry.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Wei6 Xu <wei6.xu@intel.com>
Reviewed-by: Guomin Jiang <guomin.jiang@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
FmpDevicePkg/FmpDxe/Dependency.c