commit | 44d3cacfce3054d395e47dced8c552dba1133b5c | [log] [tgz] |
---|---|---|
author | Ivan Lozano <ivanlozano@google.com> | Tue Nov 07 13:13:55 2017 -0800 |
committer | Ivan Lozano <ivanlozano@google.com> | Wed Dec 20 14:59:19 2017 -0800 |
tree | e0da3ad87837ecaf2321da26585c86127a3524de | |
parent | e3114fdec9e03b8cdc11ef19b5a7091e69ba8374 [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 Merged-In: Ice4532cce933062b3c14adf2d9749cfdea4ad84c