f2fs-tools: fix overflow bug of start_sector when computing zone_align_start_offset
authorYunlong Song <yunlong.song@huawei.com>
Wed, 30 May 2018 06:58:29 +0000 (14:58 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 28 Aug 2018 06:49:26 +0000 (23:49 -0700)
commit9c6cec2c10d1e3bb93b77e09d0fc2473831652c4
tree6592a7adee76cd4a6d0ad43914d6f361a5212696
parentbaf9acd2c46c3dfe4a268341e45174646d53ba3c
f2fs-tools: fix overflow bug of start_sector when computing zone_align_start_offset

zone_align_start_offset should be u64, but config.start_sector is u32,
so it may be overflow when computing zone_align_start_offset.

Signed-off-by: Yunlong Song <yunlong.song@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fsck/resize.c
mkfs/f2fs_format.c