MdeModulePkg: Fix potential integer overflow issue
authorRuiyu Ni <ruiyu.ni@intel.com>
Fri, 10 Jul 2015 02:16:42 +0000 (02:16 +0000)
committerniruiyu <niruiyu@Edk2>
Fri, 10 Jul 2015 02:16:42 +0000 (02:16 +0000)
commit579b5ef204947defbd6fc60c11bdd740ad09d6e9
tree356931cca38524a3890788e9ddf8d2ccc39b1fea
parentd7fc5cfd68bdf7d0b3d94fe08a523130c961d296
MdeModulePkg: Fix potential integer overflow issue

In certain rare circumstance, the data passed from outside of SMM may be
invalid resulting the integer overflow. The issue are found by code review.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17908 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.c
MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.c