f2fs-tools/tools
Xiuhong Wang 584ebc710b f2fs-tools: use atoll replace atoi to avoid data truncate
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@unisoc.com>
Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2024-06-24 17:47:35 +00:00
..
f2fs_io f2fs-tools: use atoll replace atoi to avoid data truncate 2024-06-24 17:47:35 +00:00
f2fs_io_parse.c f2fs-tools: convert to lseek() and kill lseek64 2023-08-25 10:28:52 -07:00
f2fscrypt.8 f2fs-tools: fix a few spelling errors in f2fs-tools 2020-12-07 09:25:14 -08:00
f2fscrypt.c f2fs-tools: convert to lseek() and kill lseek64 2023-08-25 10:28:52 -07:00
fibmap.c f2fs-tools: convert to lseek() and kill lseek64 2023-08-25 10:28:52 -07:00
Makefile.am f2fs-tools: convert to lseek() and kill lseek64 2023-08-25 10:28:52 -07:00
sha512.c Remove unnecessary config.h 2022-05-25 15:40:30 -07:00