commit | e52ee1a82a91264db5f2c56ce882892cb4bb0c09 | [log] [tgz] |
---|---|---|
author | Ivan Lozano <ivanlozano@google.com> | Tue Nov 07 13:13:55 2017 -0800 |
committer | Ivan Lozano <ivanlozano@google.com> | Wed Nov 08 08:23:23 2017 -0800 |
tree | 9990ef36ef6e023e702ec9f1ad07b3b01bf44c38 | |
parent | a5d9fcf8a60805f0733e8a27718c3121dca2855a [diff] |
Fix sanitizer errors in bootstat.cpp. Integer overflow sanitized builds are throwing an error on the while loop decrement in the rfind function. This refactors the loop to prevent decrementing the value on the final iteration. Test: Compiled and device boots without runtime error. Bug: 30969751 Change-Id: Ice4532cce933062b3c14adf2d9749cfdea4ad84c