]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: solaris: use 64-bit for partition offset calculations
authorKarel Zak <kzak@redhat.com>
Wed, 15 Apr 2026 18:37:45 +0000 (20:37 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 23 Apr 2026 12:07:45 +0000 (14:07 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/partitions/solaris_x86.c

index b52b820d8db1c65b754faaf7df3096e26a3e3a3d..03deb9eea34b8448835efe8af9b5c4f4b5e7081f 100644 (file)
@@ -103,8 +103,8 @@ static int probe_solaris_pt(blkid_probe pr,
 
        for (i = 1, p = &l->v_slice[0]; i < nparts; i++, p++) {
 
-               uint32_t start = le32_to_cpu(p->s_start);
-               uint32_t size = le32_to_cpu(p->s_size);
+               uint64_t start = le32_to_cpu(p->s_start);
+               uint64_t size = le32_to_cpu(p->s_size);
                blkid_partition par;
 
                if (size == 0 || le16_to_cpu(p->s_tag) == SOLARIS_TAG_WHOLEDISK)