commit | 9afcbd8e103dea5fda24b09cdb75f2b3c18cd69c | [log] [tgz] |
---|---|---|
author | Marin Shalamanov <shalamanov@google.com> | Wed Aug 19 12:34:59 2020 +0200 |
committer | Marin Shalamanov <shalamanov@google.com> | Wed Aug 19 12:38:00 2020 +0200 |
tree | eac6e828756d90fe967376ba624a94f8f568494e | |
parent | 141959209922a15acd27ee66e1408525f541a9dc [diff] |
Nullptr check for getActiveConfig() in doDump() HWComposer::getActiveConfig() returns nullptr when a bad configuration is received from HWC. In this case a dumpsys will cause a nullptr dereference and it'll crash SurfaceFlinger. This CL adds a nullptr check to prevent this. Bug: 165419673 Test: adb shell dumpsys SurfaceFlinger Change-Id: I7da8d034a5a429412a73121d795e3adc4323db13