mirror of
https://git.proxmox.com/git/mirror_edk2
synced 2025-10-25 07:30:52 +00:00
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 <ruiyu.ni@intel.com> Reviewed-by: Hao A Wu <hao.a.wu@intel.com> |
||
|---|---|---|
| .. | ||
| BootManagerMenu.c | ||
| BootManagerMenu.h | ||
| BootManagerMenuApp.inf | ||
| BootManagerMenuApp.uni | ||
| BootManagerMenuAppExtra.uni | ||
| BootManagerMenuStrings.uni | ||