aboutsummaryrefslogtreecommitdiff
path: root/fuse_sideload/fuse_sideload.cpp
diff options
context:
space:
mode:
authorluoqiangwei1 <luoqiangwei1@xiaomi.com>2021-09-16 18:25:23 +0800
committerluoqiangwei1 <luoqiangwei1@xiaomi.com>2021-10-12 13:10:43 +0800
commit95b85a4dcb19c152035f4caf673c7fdef7ac7bec (patch)
tree0032ab566e56d454277a30464194fb31fc31e0e9 /fuse_sideload/fuse_sideload.cpp
parent436a520a57b559c3da6af222328218cae9b703cf (diff)
Fix the fuse error that cannot handle the OTA package larger than 4 GiB
1. That read data will be blocked when adb sideload OTA package 2. An error(Out of bound read) occurs when installing OTA package by fuse Test: as follows - adb sideload OTA package - install OTA package by install_with_fuse parameter Change-Id: Ie53510d157f6ea4c92606b289fcb745d441918c8 Signed-off-by: luoqiangwei1 <luoqiangwei1@xiaomi.com>
Diffstat (limited to 'fuse_sideload/fuse_sideload.cpp')
-rw-r--r--fuse_sideload/fuse_sideload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fuse_sideload/fuse_sideload.cpp b/fuse_sideload/fuse_sideload.cpp
index 3d948030..07cbe96f 100644
--- a/fuse_sideload/fuse_sideload.cpp
+++ b/fuse_sideload/fuse_sideload.cpp
@@ -225,7 +225,7 @@ static int handle_release(void* /* data */, fuse_data* /* fd */, const fuse_in_h
// Fetch a block from the host into fd->curr_block and fd->block_data.
// Returns 0 on successful fetch, negative otherwise.
-static int fetch_block(fuse_data* fd, uint32_t block) {
+static int fetch_block(fuse_data* fd, uint64_t block) {
if (block == fd->curr_block) {
return 0;
}