commit | 44ef630d59722427fe2dc4a22e42053bd98d97ce | [log] [tgz] |
---|---|---|
author | Martijn Coenen <maco@google.com> | Fri Nov 06 10:32:32 2020 +0100 |
committer | Martijn Coenen <maco@google.com> | Fri Nov 06 20:30:47 2020 +0000 |
tree | 8d33ed1bc954c6b4a90af06a92562ae9146dc076 | |
parent | 8851c7c44f144814f42c651fa26f493315cfd1ee [diff] |
Don't use std::stoi() We use it for parsing out the userIds in paths passed in by user code, and invalid inputs could cause std::stoi() to throw an exception and crash the process. Bug: 172629984 Test: cd /storage/emulated/1000000000000 Change-Id: Iaafffb1684ef0d719d4927458dfad45989d76971