diff options
author | Tony Dinh <mibodhi@gmail.com> | 2025-05-22 22:02:01 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-05-23 10:42:49 -0600 |
commit | df2ed552f0b05591090369a7fe7ddc92439dea5c (patch) | |
tree | f523bb31da61aeba794347acb250c9bac962ad77 /lib/efi_loader/efi_device_path.c | |
parent | ec3ce603cd9840492d60230f164533ad4574489f (diff) |
ext4fs: Fix: Read outside partition error
Use lbaint_t for blknr to avoid overflow in ext4fs_read_file().
Background:
blknr (block number) used in ext4fs_read_file() could be increased to a
very large value and causes a wrap around at 32 bit signed integer max,
thus becomes negative. This results in an out-of-normal range for sector
number (during the assignment delayed_start = blknr) where delayed_start
sector is typed uint64 lbaint_t. This causes the "Read outside partition"
error.
This patch was tested on the Synology DS116 (Armada 385) board, and a
4TB Seagate HDD.
Signed-off-by: Tony Dinh <mibodhi@gmail.com>
Diffstat (limited to 'lib/efi_loader/efi_device_path.c')
0 files changed, 0 insertions, 0 deletions