diff options
| author | 2015-05-19 11:25:40 +0000 | |
|---|---|---|
| committer | 2015-05-21 09:20:46 +0200 | |
| commit | a64cd48594218c47013906afa2550a8bc64c7156 (patch) | |
| tree | 557de6a06e78757a850b7d5d16ec6c75ba19bc06 /libs/hwui/GradientCache.cpp | |
| parent | 5053258e200973d6ae4fec705ea766e0a58a61c9 (diff) | |
Fix null pointer dereference when security exception occurs
Just above the SecurityException is a check for r.record == null,
thus dereferencing r.record will cause a null pointer exception.
Found in Android 4.3 with the following steps:
1) Start the music app.
2) Switch to the restricted user.
3) Navigate to Settings->Apps->Running->Music.
4) Tap the stop button.
The security exception should be thrown which results in
a nice message to the user, but instead a null pointer
exception is thrown which results in the settings app
crashing.
Change-Id: I4a306c38650c9d366896e592767dde70adb71c57
Diffstat (limited to 'libs/hwui/GradientCache.cpp')
0 files changed, 0 insertions, 0 deletions