diff options
author | Mark Salyzyn <salyzyn@google.com> | 2017-09-20 08:37:46 -0700 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2017-10-26 14:17:14 -0700 |
commit | 747c0e6216f2d805ac0ac91c3d5296e11124165b (patch) | |
tree | efe2244a76d613995a99dec3475c5d798aa4c6d8 /libunwindstack/tests/MemoryFileTest.cpp | |
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
Diffstat (limited to 'libunwindstack/tests/MemoryFileTest.cpp')
0 files changed, 0 insertions, 0 deletions