Skip to content
Commit ae182a25 authored by Mikhail Ilin's avatar Mikhail Ilin Committed by Heinrich Schuchardt
Browse files

efi_loader: Fix buffer underflow



If the array index 'i' < 128, the 'codepage' array is accessed using
[-128...-1] in efi_unicode_collation.c:262. This can lead to a buffer
overflow.

    Negative index in efi_unicode_collation.c:262.

The index of the 'codepage' array should be c - 0x80 instead of i - 0x80.

Fixes: 0bc4b0da ("efi_loader: EFI_UNICODE_COLLATION_PROTOCOL")
Signed-off-by: default avatarMikhail Ilin <ilin.mikhail.ol@gmail.com>
Reviewed-by: default avatarHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
parent 16e49a14
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment