commit | 5bf8fc7edec7fcb8cdacec63cd4dcca29ffbeb38 | [log] [tgz] |
---|---|---|
author | Chia-I Wu <olv@google.com> | Tue Jul 18 11:30:05 2017 -0700 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Tue Aug 22 23:23:34 2017 +0000 |
tree | 19d2082c959f0fffe1039d3876ee79d5c0e2bd15 | |
parent | 7d951867416234a6f3228eb9d888009184b1d0b7 [diff] |
surfaceflinger: fix a nullptr dereference When the child layer latched a buffer but the fixed-size parent layer never did (for reasons such as no buffer queued or buffer got rejected), we could end up with p->mActiveBuffer being nullptr. Bug: 62996512 Test: manual (I could never repro anyway) Change-Id: Id7e4c7037633b8a37039baa6e8a306e55170b894 (cherry picked from commit 0a68b461d382304ae438fa8b52920fa75d178a1c) (cherry picked from commit 2e00825332f1807316eca5b4b41527e3bbab841f)