From 1f42172b171200e2b6bdb7120b8ce7ae5bcf8aa1 Mon Sep 17 00:00:00 2001 From: Frank Li Date: Wed, 1 Feb 2023 12:36:12 -0600 Subject: [PATCH] Fixed android super.img loop download 52byte after some block request_data change return value, which only contain requested data region. sparse image to sparse image convert code has problem at while(off < pos). off just request data offset. pos is whole file's offset. off should add start point. Signed-off-by: Frank Li --- libuuu/fastboot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libuuu/fastboot.cpp b/libuuu/fastboot.cpp index 640dd567..151cf0e9 100644 --- a/libuuu/fastboot.cpp +++ b/libuuu/fastboot.cpp @@ -845,7 +845,7 @@ int FBFlashCmd::run(CmdCtx *ctx) nt.total = startblock; call_notify(nt); - } while (off < pos); + } while (off + oldpos < pos); } }