summaryrefslogtreecommitdiffstats
path: root/toolbox
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2016-05-05 11:21:11 -0700
committerChristopher Ferris <cferris@google.com>2016-05-05 14:21:25 -0700
commit157f2725ec949602757fe6fe1f78cfd42dec2a07 (patch)
treed9b3dcff99b11e4f3717ab520141b4bdfa1c95a2 /toolbox
parentd4946658225e7fdb12219924357814fcc0cd3cf9 (diff)
downloadcore-157f2725ec949602757fe6fe1f78cfd42dec2a07.tar.gz
core-157f2725ec949602757fe6fe1f78cfd42dec2a07.tar.bz2
core-157f2725ec949602757fe6fe1f78cfd42dec2a07.zip
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
Diffstat (limited to 'toolbox')
0 files changed, 0 insertions, 0 deletions