commit | 747c0e6216f2d805ac0ac91c3d5296e11124165b | [log] [tgz] |
---|---|---|
author | Mark Salyzyn <salyzyn@google.com> | Wed Sep 20 08:37:46 2017 -0700 |
committer | Mark Salyzyn <salyzyn@google.com> | Thu Oct 26 14:17:14 2017 -0700 |
tree | efe2244a76d613995a99dec3475c5d798aa4c6d8 | |
parent | dafced93a56352b79c74b016eba437b28bbbe11e [diff] |
bootstat: better validation of battery level (shutdown,battery) Replace simple strtoull with loop that ensures no leading zeros. Restrict size of value buffer being checked as allocation was going to end of retrieved buffer, which can cause unnecessary memory pressure during boot. Test: system/core/bootstat/boot_reason_test.sh Bug: 63736262 Change-Id: Ifdc1d4fd3a73794c001577024ce7cbfde9c25028