]> git.proxmox.com Git - mirror_edk2.git/commit - QuarkSocPkg/QuarkNorthCluster/Smm/DxeSmm/QncSmmDispatcher/QNCSmmCore.c
QuarkSocPkg/QNCSmmDispatcher: Fix use after free issue #2
authorMarvin H?user <Marvin.Haeuser@outlook.com>
Fri, 21 Jul 2017 06:11:37 +0000 (23:11 -0700)
committerMichael D Kinney <michael.d.kinney@intel.com>
Thu, 17 Aug 2017 02:42:17 +0000 (19:42 -0700)
commit4e33ff75d9dccd3a59f70eeeaff9e3208426f63e
tree2ca8c588a5b9d7325bdacbcfedaa1aa2b2ee8558
parent6619cf3b6a84397ceff5d856111a33f9cdfb0812
QuarkSocPkg/QNCSmmDispatcher: Fix use after free issue #2

As part of commit 5f82e02, ActiveRecordInDb was introduced as a copy
of RecordInDb as latter may be freed by the callback function. This
commit replaces an access of RecordInDb after the callback function
has been executed with an access to ActiveRecordInDb.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Kelly Steele <kelly.steele@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
QuarkSocPkg/QuarkNorthCluster/Smm/DxeSmm/QncSmmDispatcher/QNCSmmCore.c