Re: [PATCH] ext4fs: Fix: Read outside partition error (take 2)

2025-06-12 Thread Tom Rini
On Wed, 28 May 2025 12:48:39 -0700, Tony Dinh wrote: > 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 beco

Re: [PATCH] ext4fs: Fix: Read outside partition error

2025-05-26 Thread Tony Dinh
Hi Tom, On Mon, May 26, 2025 at 3:25 PM Tom Rini wrote: > > On Thu, May 22, 2025 at 10:02:01PM -0700, Tony Dinh wrote: > > > 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

Re: [PATCH] ext4fs: Fix: Read outside partition error

2025-05-26 Thread Tom Rini
On Thu, May 22, 2025 at 10:02:01PM -0700, Tony Dinh wrote: > 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, > thu

Re: [PATCH] ext4fs: Fix: Read outside partition error

2025-05-23 Thread Tom Rini
On Thu, 22 May 2025 22:02:01 -0700, Tony Dinh wrote: > 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 beco