summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Common/Misc.py
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2018-02-01 18:14:24 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2018-02-03 14:48:58 +0800
commit8a641d2b73295d64438012972aac83838de31671 (patch)
tree886a7d658bd7d82e4f25fdf719f8b0ea3064e427 /BaseTools/Source/Python/Common/Misc.py
parent2ad34f65af46b825b4fbf0d492e22df89207516c (diff)
downloadedk2-8a641d2b73295d64438012972aac83838de31671.tar.gz
edk2-8a641d2b73295d64438012972aac83838de31671.tar.bz2
edk2-8a641d2b73295d64438012972aac83838de31671.zip
MdeModulePkg/SmmCore: Fix hang due to already-freed memory deference
SmiHandlerUnRegister() validates the DispatchHandle by checking whether the first 32bit matches to a certain signature (SMI_HANDLER_SIGNATURE). But if a caller calls *UnRegister() twice and the memory freed by first call still contains the signature, the second call may hang. The patch fixes this issue by locating the DispatchHandle in all SMI handlers, instead of checking the signature. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Common/Misc.py')
0 files changed, 0 insertions, 0 deletions