Skip to content

Commit

Permalink
Fix the fuse error that cannot handle the OTA package larger than 4 GiB
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: GarfieldHan <[email protected]>
  • Loading branch information
luoqiangwei1 authored and uixdess committed Dec 27, 2021
1 parent affe005 commit aade571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuse_sideload/fuse_sideload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit aade571

Please sign in to comment.