Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6bf97d49 authored by David Anderson's avatar David Anderson
Browse files

fastbootd: Remove an erroneous partition size check.

It is possible that when flashing a file that is not 4KB aligned, the
sparse size will be larger than the unsparse size. The code incorrectly
validates the sparse size, rather then the underlying data size.

Simply remove this check as it's redundant (lseek/write will fail if out
of bounds).

Bug: 415214175
Test: manual test
Change-Id: Iff7ed66925e05aa0ab8727755bcd4f5083126a06
parent 21036d9e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment