diff options
| author | Robert Yang <decatf@gmail.com> | 2018-10-24 13:07:50 -0400 |
|---|---|---|
| committer | Robert Yang <decatf@gmail.com> | 2018-10-24 15:23:55 -0400 |
| commit | 88c997d4eb6f66f9b52e56668cbdf48f5c99e183 (patch) | |
| tree | 10eb83b83502bb3e41b5910bab89d2e5be019546 /libunwindstack/tests/MemoryCacheTest.cpp | |
| parent | ac305c82d6c98bcb96257d9f099c0d7049dd62ce (diff) | |
adb: Use a default _SC_GETPW_R_SIZE_MAX size
sysconf(_SC_GETPW_R_SIZE_MAX) may return −1 if there is no hard limit
on the the buffer size. Some libc implementations such as musl don't
define this limit and will return -1.
Use a default buffer size to handle this case.
Change-Id: I997b13a2c2dca00574e049a259135e61c8ed8e03
Signed-off-by: Robert Yang <decatf@gmail.com>
Diffstat (limited to 'libunwindstack/tests/MemoryCacheTest.cpp')
0 files changed, 0 insertions, 0 deletions
