diff options
author | liyong <liyong@allwinnertech.com> | 2019-06-28 15:05:12 +0800 |
---|---|---|
committer | 勇 李 <liyong@allwinnertech.com> | 2019-07-04 11:29:19 +0000 |
commit | 089941c800e57ffadbeef24a38410b415448713d (patch) | |
tree | f2e6f4d151f64cdf9e441b43e4e856e4fa1e0f4f /init/service_utils.cpp | |
parent | c538656d7d991ceb1058ac624be95bca45780d9d (diff) |
Fix unsigned type sub overflow issue when isntall DSU
writer->size() is block size aligned and could be bigger than remaining_bytes
If remaining_bytes is bigger, set remaining_bytes to 0 to avoid sub overflow error.
Bug: 136727859
Test: Successfully install a DSU
Change-Id: If493b0f206561239caec2ee234f7cfd70bf927a7
Diffstat (limited to 'init/service_utils.cpp')
0 files changed, 0 insertions, 0 deletions