diff options
| author | Connor O'Brien <connoro@google.com> | 2017-02-27 12:21:39 -0800 |
|---|---|---|
| committer | Connor O'Brien <connoro@google.com> | 2017-02-27 12:21:39 -0800 |
| commit | 231404db24c82ac9a6e6fd5fcee88d44e7188757 (patch) | |
| tree | 693b83d843f38f7761bd93ba04861029def514be /libutils/Unicode.cpp | |
| parent | f4bdec6615ebc6bcbc7979d8c85cffcbe855a07e (diff) | |
libmemtrack: check return value for getMemory()
libmemtrack does not report an error when the binderized memtrack
service dies during a call to getMemory, so a crash in the memtrack
service can result in the calling process (e.g. system_server)
crashing as well. Add an error check to avoid this problem.
Bug: 35728498
Test: adb shell kill -9 $(adb shell pidof android.hardware.memtrack@1.0-service)
Change-Id: I852d8dfcbc1c92a95f8fe249b607dea8eb01f06a
Signed-off-by: Connor O'Brien <connoro@google.com>
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions
