summaryrefslogtreecommitdiff
path: root/libutils/Unicode_test.cpp
diff options
context:
space:
mode:
authorJames Hawkins <jhawkins@google.com>2016-07-28 11:50:23 -0700
committerJames Hawkins <jhawkins@google.com>2016-07-29 08:24:28 -0700
commitf85554e12ff1a75d4bc47ac602c9201acc43ecc6 (patch)
treeb73b7d1e1c35bcd164869840a968ca43400035e4 /libutils/Unicode_test.cpp
parenta6cb3062ff754e9896978dc11b18480ed83d218c (diff)
bootstat: Fix a potential unhandled exception for malformed input.
In rare cases the hardware storage on the device may be hosed and return garbage. Use ParseInt which handles bad input instead of stoi. BUG: 29334139 Change-Id: I91aedc169df110bea8097775f73dda11def22311 (cherry picked from commit 4dded613b3aaee016adffd895edf3866426fc22a)
Diffstat (limited to 'libutils/Unicode_test.cpp')
0 files changed, 0 insertions, 0 deletions