]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: fix suspicious implicit sign extension [coverity scan]
authorKarel Zak <kzak@redhat.com>
Tue, 31 Jan 2012 14:11:38 +0000 (15:11 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 31 Jan 2012 14:11:55 +0000 (15:11 +0100)
... thanks to "value preserving rules".

Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/superblocks/vfat.c

index 13d5769532eafd5b963af273f54a9d289733c653..2feb818a9d08e89040679c422c4e3cc0687295ca 100644 (file)
@@ -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)