Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 51a1db9b24d850c785d240da599c4bf9ba1c0fd3
      
https://github.com/tianocore/edk2/commit/51a1db9b24d850c785d240da599c4bf9ba1c0fd3
  Author: Ruiyu Ni <[email protected]>
  Date:   2017-04-14 (Fri, 14 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]>


------------------------------------------------------------------------------
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

Reply via email to