From 2b586af3082063ff16f040c69f32fc5fabb9eb73 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 31 Jan 2012 15:11:38 +0100 Subject: [PATCH] libblkid: fix suspicious implicit sign extension [coverity scan] ... thanks to "value preserving rules". Signed-off-by: Karel Zak --- libblkid/src/superblocks/vfat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libblkid/src/superblocks/vfat.c b/libblkid/src/superblocks/vfat.c index 13d5769532..2feb818a9d 100644 --- a/libblkid/src/superblocks/vfat.c +++ b/libblkid/src/superblocks/vfat.c @@ -349,7 +349,7 @@ static int probe_vfat(blkid_probe pr, const struct blkid_idmag *mag) } /* get FAT entry */ - fat_entry_off = (reserved * sector_size) + + fat_entry_off = ((uint64_t) reserved * sector_size) + (next * sizeof(uint32_t)); buf = blkid_probe_get_buffer(pr, fat_entry_off, buf_size); if (buf == NULL) -- 2.47.3