[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ab63f640-aa26-4c2f-9020-09953fd8d39d@kernel.org>
Date: Tue, 18 Jun 2024 09:05:12 +0800
From: Chao Yu <chao@...nel.org>
To: Xiuhong Wang <xiuhong.wang@...soc.com>, jaegeuk@...nel.org,
linux-f2fs-devel@...ts.sourceforge.net, linux-kernel@...r.kernel.org
Cc: niuzhiguo84@...il.com, ke.wang@...soc.com, xiuhong.wang.cn@...il.com
Subject: Re: [PATCH 1/1] f2fs-tools: use atoll replace atoi to avoid data
truncate
On 2024/6/12 15:17, Xiuhong Wang wrote:
> If input exceeds int range, data will be truncated, such as lseek:
> unisoc:/data # ./f2fs_io lseek set 3221225000 file
> returned offset=2147483647
> The offset is truncated.
>
> After patch:
> unisoc:/data # ./f2fs_io lseek set 3221225000 file
> returned offset=3221225000
>
> Signed-off-by: Xiuhong Wang <xiuhong.wang@...soc.com>
> Signed-off-by: Zhiguo Niu <zhiguo.niu@...soc.com>
Reviewed-by: Chao Yu <chao@...nel.org>
Thanks,
Powered by blists - more mailing lists