diff options
author | Mark Salyzyn <salyzyn@google.com> | 2015-02-26 14:43:04 -0800 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2015-02-26 14:49:17 -0800 |
commit | ca50cd2114f2c509ae2d1d06468e61f3cfc0b280 (patch) | |
tree | d8b5dcb949d76dd8c2fd67ecac9df135327681d9 | |
parent | 8cba382f04e4ead4a6b8c4a74216ddb383e8db91 (diff) | |
download | frameworks_base-ca50cd2114f2c509ae2d1d06468e61f3cfc0b280.zip frameworks_base-ca50cd2114f2c509ae2d1d06468e61f3cfc0b280.tar.gz frameworks_base-ca50cd2114f2c509ae2d1d06468e61f3cfc0b280.tar.bz2 |
jni: Add paranoia regarding android_logger_list_read
Change-Id: Ic52be201ec7efaef6a385aaf8ea523554aa06f22
-rw-r--r-- | core/jni/android_util_EventLog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/jni/android_util_EventLog.cpp b/core/jni/android_util_EventLog.cpp index 6c95b8a..5cb8b2e 100644 --- a/core/jni/android_util_EventLog.cpp +++ b/core/jni/android_util_EventLog.cpp @@ -188,6 +188,10 @@ static void android_util_EventLog_readEvents(JNIEnv* env, jobject clazz UNUSED, break; } + if (log_msg.id() != LOG_ID_EVENTS) { + continue; + } + int32_t tag = * (int32_t *) log_msg.msg(); int found = 0; |