From a8307ab8cc3699aa47cd4d9fc176fc2cfde7b0e7 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Fri, 10 Jan 2014 21:56:29 -0500 Subject: [PATCH] libblkid: fix integer width issue in probe_fat Addresses-Coverity-Id: #1049162 Signed-off-by: "Theodore Ts'o" --- lib/blkid/probe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/blkid/probe.c b/lib/blkid/probe.c index b63a509..4b797ab 100644 --- a/lib/blkid/probe.c +++ b/lib/blkid/probe.c @@ -585,8 +585,8 @@ static int probe_fat(struct blkid_probe *probe, __u64 next_off, fat_entry_off; int count; - next_sect_off = (__u64) (next - 2) * vs->vs_cluster_size; - next_off = (start_data_sect + next_sect_off) * + next_sect_off = (next - 2) * vs->vs_cluster_size; + next_off = (__u64) (start_data_sect + next_sect_off) * sector_size; dir = (struct vfat_dir_entry *) -- 1.8.3.1