summaryrefslogtreecommitdiff
path: root/libs/ui/FramebufferNativeWindow.cpp
diff options
context:
space:
mode:
author Tatenda Chipeperekwa <tatendac@codeaurora.org> 2014-10-29 16:47:19 -0700
committer Dan Stoza <stoza@google.com> 2015-06-11 12:28:41 -0700
commit40da48bfdf5d2d199aac55891d2f37822cdbee88 (patch)
tree4b25485717775b74f28e6ea75d73f5d4b1c33f9d /libs/ui/FramebufferNativeWindow.cpp
parentffe3e96afe99e94904ca0c8f458a3eb708d78066 (diff)
sf: Add a NULL check in getDisplayConfigs
Validate the display binder by adding a NULL check in getDisplayConfigs. This will prevent a false match if the caller queries the display configs for an inactive display (whose binder is NULL by default). Without this change we might end up attempting to index the display config array, which is unpopulated for inactive displays, and this will result in a crash. (See getDisplayInfo in SurfaceComposerClient.cpp for an example of this scenario) Change-Id: Ib32a7dc8378d3438df0dba1ecd608bbcfc837717
Diffstat (limited to 'libs/ui/FramebufferNativeWindow.cpp')
0 files changed, 0 insertions, 0 deletions