Skip to content
Commit b7c28f94 authored by Robin Lee's avatar Robin Lee
Browse files

Add null checking for Log.wtf CrashInfo

This is a hidden API that is only used inside RuntimeInit. When a caller
claims to be the system, ActivityManagerService can't necessarily tell
if they're being honest and assumes they are. The request is put on a
background handler to avoid locks, and the app is not supposed to be
allowed to crash.

We weren't checking well-formedness of the other arguments. A
NullPointerException on the background handler can take down the
entire system. So we should check the crashInfo for nullness before
it's used.

Test: atest FrameworksCoreTests
Bug: 171963789
Change-Id: I12341acef9b36e8d2a1af9952f9af93a5210a67a
parent 831a34a6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment