diff options
author | Christopher Desjardins <christopher.desjardins@tomtom.com> | 2015-05-19 11:25:40 +0000 |
---|---|---|
committer | Wale Ogunwale <ogunwale@google.com> | 2015-06-01 07:45:11 -0700 |
commit | 5862c5f85e28efc370510d42680930ca73a3309f (patch) | |
tree | 6b5e32dde5d2c5fe9f364fe81c644b72c0d4e1a3 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 55b4b2d5a82ef7999a32b8163340a15085b2df38 (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 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions