On 2023/5/23 20:27, zangyangyang1 wrote:
When using fiemap to obtain the block address of files
larger than 2GB ((2147483647+1) bytes), an integer
multiplication overflow error will occur.
This issue is caused by the following code:
     start = atoi(argv[1]) * F2FS_BLKSIZE;
     length = atoi(argv[2]) * F2FS_BLKSIZE;

Signed-off-by: zangyangyang1 <[email protected]>

Reviewed-by: Chao Yu <[email protected]>

Thanks,


_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to