aboutsummaryrefslogtreecommitdiff
path: root/lib/ext2fs/qcow2.c
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:10:34 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:10:34 +0000
commit8e8408c65078c4f4c171e5cc2b567d6705bed024 (patch)
tree1605641dff9d3858f2b1595d8885bb0fe9496f34 /lib/ext2fs/qcow2.c
parent037a031cb6f2d5e4575a3028e3c7135c59ee805a (diff)
parent63687023fc2e8871a718cb4e18458eece2e3460c (diff)
downloade2fsprogs-8e8408c65078c4f4c171e5cc2b567d6705bed024.tar.gz
Change-Id: Ib8f5c32e208ea07a1c7814b337878a6d47c59923
Diffstat (limited to 'lib/ext2fs/qcow2.c')
-rw-r--r--lib/ext2fs/qcow2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ext2fs/qcow2.c b/lib/ext2fs/qcow2.c
index ee701f7a..20824170 100644
--- a/lib/ext2fs/qcow2.c
+++ b/lib/ext2fs/qcow2.c
@@ -238,7 +238,7 @@ int qcow2_write_raw_image(int qcow2_fd, int raw_fd,
if (offset == 0)
continue;
- off_out = (l1_index * img.l2_size) +
+ off_out = ((__u64)l1_index * img.l2_size) +
l2_index;
off_out <<= img.cluster_bits;
ret = qcow2_copy_data(qcow2_fd, raw_fd, offset,