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 | bcb01042efffe5cdc28aa3d067b9fac8da5e2328 (patch) | |
| tree | f2e6f4d151f64cdf9e441b43e4e856e4fa1e0f4f /libutils/Unicode.cpp | |
| parent | b8162bbd8ce42f943d4332a7bbcc74ed77e93621 (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 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions
