Re: [PATCH v2 26/28] fs/squashfs: sqfs_read: remove buggy offset functionality

2020-11-19 Thread Tom Rini
On Tue, Nov 03, 2020 at 12:11:24PM +0100, Richard Genoud wrote: > offset is the offset in the file read, not the offset in the destination > buffer. > If the offset is not null, this will lead to a memory corruption. > So, for now, we are returning an error if the offset is used. > > Signed-off-b

[PATCH v2 26/28] fs/squashfs: sqfs_read: remove buggy offset functionality

2020-11-03 Thread Richard Genoud
offset is the offset in the file read, not the offset in the destination buffer. If the offset is not null, this will lead to a memory corruption. So, for now, we are returning an error if the offset is used. Signed-off-by: Richard Genoud --- fs/squashfs/sqfs.c | 16 1 file chan