Branch: refs/heads/UDK2017
Home: https://github.com/tianocore/edk2
Commit: 6efcd38566e6e5cddee4ec98543950f111c4566f
https://github.com/tianocore/edk2/commit/6efcd38566e6e5cddee4ec98543950f111c4566f
Author: Ruiyu Ni <[email protected]>
Date: 2017-04-17 (Mon, 17 Apr 2017)
Changed paths:
M MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenu.c
Log Message:
-----------
MdeModulePkg/BootManagerMenu: Add assertion to indicate no DIV by 0
BootMenuSelectItem() contains code to DIV BootMenuData->ItemCount.
When BootMenuData->ItemCount can be 0, the DIV operation may
trigger CPU exception.
But in logic, this case won't happen. So add assertion to indicate
it.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <[email protected]>
Reviewed-by: Hao A Wu <[email protected]>
(cherry picked from commit 51a1db9b24d850c785d240da599c4bf9ba1c0fd3)
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits