diff options
author | Christopher Ferris <cferris@google.com> | 2016-05-05 11:21:11 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2016-05-05 11:21:11 -0700 |
commit | 039976e553f261c5c43f9bfc295c31b9f6189ffc (patch) | |
tree | eaae0038c81ee19c1d8ae20da95c07388348bbc0 /libutils/tests/Unicode_test.cpp | |
parent | f2049163a4ce602dffaa41a747ee5675a0d82752 (diff) |
Fix null pointer dereference.
In the function dump_thread_info, if /proc/<PID>/comm is unreadable, then
threadname will be used in a strncmp causing a crash. The fix is to
avoid the check if threadname is null.
Bug: 28615417
Change-Id: I54eda86404c927dbf5a987f5dd2108487df9f16c
Diffstat (limited to 'libutils/tests/Unicode_test.cpp')
0 files changed, 0 insertions, 0 deletions