commit | e0d43de2640ad30a13bea4f2f175a1e8f2e9eb01 | [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 | 43c04820f9d8bc024c73674407a5d50fb97f3329 [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