diff options
author | Mark Salyzyn <salyzyn@google.com> | 2016-11-09 10:14:35 -0800 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2016-11-09 10:16:38 -0800 |
commit | 53e9fc791548ee0f81d6e749304359c0c335952d (patch) | |
tree | 53fa12f29de5a07f486bd1e219e49ba1d70fd601 /libcutils/sockets_unix.cpp | |
parent | bccb521c6be23247ae994a9708185ecc7f43610e (diff) |
liblog: android_closeEventTagMap pointer check
Followup to c/278768 where failure to open tag map can
result in segment violation in android_closeEventTagMap.
Add check for pointer value = -1 to bypass call to close.
Test: gTest liblog-unit-tests, logcat-unit-tests & logd-unit-tests
Bug: 30963384
Bug: 31456426
Change-Id: I20547e55d7e29682fde4538bc1fc6d83b4535d49
Diffstat (limited to 'libcutils/sockets_unix.cpp')
0 files changed, 0 insertions, 0 deletions