commit | 3738968ed8587bb742ce8aed3ec61b3c9663b9d8 | [log] [tgz] |
---|---|---|
author | Chris Fries <cfries@google.com> | Tue Apr 18 11:39:24 2017 -0500 |
committer | Chris Fries <cfries@google.com> | Wed Apr 19 10:32:45 2017 -0500 |
tree | e0a5b0c900158a34e7e6092e5ff7b0d60eb728cd | |
parent | 8b318d0c26c89acd7c716fb571bfd08d4393d12f [diff] |
libsparse: Fix odd-sized input files total_blks If the input file isn't a multiple of block_size, count the trailing bit as a block in the output, otherwise bootloader will try to write past the last declared block in the sparse file. Test: Run sparse_test Bug: 37339998 Change-Id: Iec143107d15795c6a6f4d3ea7b7515f6f16adcae