commit | 17de65420dbc114001896d243fbb27cc3ba6bf61 | [log] [tgz] |
---|---|---|
author | Ken Sumrall <ksumrall@android.com> | Thu Aug 15 19:06:29 2013 -0700 |
committer | Ken Sumrall <ksumrall@android.com> | Thu Aug 15 19:06:29 2013 -0700 |
tree | cd1c2176b4b704b5d1361598a96ecf484fb1dcb3 | |
parent | 5b1efce4aeea83c7b18dfed5d3366d6b84874c23 [diff] |
Avoid underflow on an unsigned int when computering bg overrun A computation for when a block group overruns the end of an image was consistently storing a negative number in an unsigned var, and then checking for >0, which is always true for negative numbers. So first check if the number will be positive before computing it. Change-Id: Ic8cff8f9ab9f4ea8c5a4dc42143c2430fa87ba12