commit | 6bf388b555dcbb48eb47fda1f2843ade8366fb6c | [log] [tgz] |
---|---|---|
author | Christopher Ferris <cferris@google.com> | Thu May 05 11:21:11 2016 -0700 |
committer | Christopher Ferris <cferris@google.com> | Thu May 05 14:21:25 2016 -0700 |
tree | d9b3dcff99b11e4f3717ab520141b4bdfa1c95a2 | |
parent | b71018bc25388931c121741992603eaaf7814018 [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 (cherry picked from commit 039976e553f261c5c43f9bfc295c31b9f6189ffc) Change-Id: I1e61431b1549ecfdc49a72cbf193a364069cda79