This repository has been archived by the owner on Apr 27, 2024. It is now read-only.
forked from LineageOS/android_system_core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libsparse: Fix allocation failures on 32-bit systems.
libsparse uses mapped files for length computation checks and writing output data. The platform-tools package for Windows is 32-bit, and if an embedded file in the stream is large enough, mapping will fail. In theory, this failure mode could happen on 64-bit systems as well. As a workaround, map files in chunks of 256MB instead. This is implemented by adding a new "fd_chunk" callback to the sparse ops struct. Bug: 273933042 Bug: 268872725 Test: fastboot update on Windows Google: 2495616 Change-Id: Ic40696b34a1d0951787c899db701fc2fa204eb18 Signed-off-by: CxDxVER <[email protected]>
- Loading branch information
1 parent
487c5fd
commit f6b7d39
Showing
1 changed file
with
98 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters