audk/MdeModulePkg/Core
Ruiyu Ni 5fc3889bb3 MdeModulePkg/DxeCore: Avoid accessing non-owned memory
The patch fixes two kinds of bugs in DxeCore that accesses memory
which might be freed or owned by other modules.
The two bugs don't cause functionality issue.

1. CoreValidateHandle() checks whether the handle is valid by
   validating its signature. The proper way is to check whether
   the handle is in the handle database.
2. CoreDisconnectControllersUsingProtocolInterface() and
   CoreOpenProtocol() de-reference Link pointer which is
   already freed. The proper way is to not de-reference the pointer.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
2017-07-18 16:49:15 +08:00
..
Dxe MdeModulePkg/DxeCore: Avoid accessing non-owned memory 2017-07-18 16:49:15 +08:00
DxeIplPeim MdeModulePkg: Remove unsupported PcdExpression usage in module INF 2017-04-06 12:54:49 +08:00
Pei MdeModulePkg PeiCore: Correct the comments of PeiResetSystem2 2017-06-30 09:43:02 +08:00
PiSmmCore MdeModulePkg: Enhance the debug message for InstallProtocolInterface 2017-06-23 14:46:41 +08:00
RuntimeDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00