diff options
| author | Masahisa Kojima <[email protected]> | 2023-02-02 18:24:45 +0900 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2023-02-10 13:05:39 +0100 |
| commit | 1f0583beeb32b0eab4d87ea9c0bef247432aa0c6 (patch) | |
| tree | 8acc77a75cf740eb55aa6924fa28efdfec61734c /lib/efi_loader/efi_variable.c | |
| parent | 88df36346c767f8756e54cc1941b6cda180b61db (diff) | |
eficonfig: set EFICONFIG_ENTRY_NUM_MAX to INT_MAX - 1
eficonfig_append_menu_entryi() accepts the number of entries
less than or equal to EFICONFIG_ENTRY_NUM_MAX.
EFICONFIG_ENTRY_NUM_MAX is currently set as INT_MAX, so
the invalid menu count check(efi_menu->count > EFICONFIG_ENTRY_NUM_MAX)
in eficonfig_process_common() is always false.
This commit sets EFICONFIG_ENTRY_NUM_MAX to (INT_MAX - 1).
Reported-by: Coverity (CID 435659)
Signed-off-by: Masahisa Kojima <[email protected]>
Reviewed-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'lib/efi_loader/efi_variable.c')
0 files changed, 0 insertions, 0 deletions
