OSDN Git Service

EventLog: Check for exception after add()
authorAndreas Gampe <agampe@google.com>
Mon, 9 Oct 2017 15:25:36 +0000 (08:25 -0700)
committerAndreas Gampe <agampe@google.com>
Mon, 9 Oct 2017 21:18:11 +0000 (14:18 -0700)
commitca06d8b5ada53cc135177363d9f270dc6301b8af
tree6eb18b5979e9f154ae4e03fa78679697bc7a22de
parented8d236319a112a0b19b1f05ea55a90ba93e8aa2
EventLog: Check for exception after add()

When reading events, calling Collection.add() may result in an
OutOfMemoryError or immutability error. Check for an exception
after the call in EventLog and SecurityLog.

Bug: 67511924
Test: m
Test: Device boots
Change-Id: If0fbf6b01051b5311eeb88d3f52470cd8b1eec59
core/jni/android_app_admin_SecurityLog.cpp
core/jni/android_util_EventLog.cpp