]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: overflow in efi_allocate_pages
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 30 Jul 2023 09:31:08 +0000 (11:31 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 3 Aug 2023 07:21:02 +0000 (09:21 +0200)
commit48d183f2acb0157856254f52d2d856a07463acd4
tree0312d9783bbd941c14f9ec3a06cc21ad923ed9fb
parentd12c3efe53107e4ce4f22e146594437e1ae89cfc
efi_loader: overflow in efi_allocate_pages

On 32bit systems (pages << EFI_PAGE_SHIFT) may lead to an overflow which
does not occur in 64bit arithmetics.

An overflow of (pages << EFI_PAGE_SHIFT) on 64bit systems should be treated
as an error.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_memory.c