replicant-frameworks_native/services/surfaceflinger
Tatenda Chipeperekwa 40da48bfdf 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
2015-06-11 12:28:41 -07:00
..
DisplayHardware libgui/SurfaceFlinger: Add getConsumerName 2015-06-09 11:28:37 -07:00
Effects
EventLog
RenderEngine SF: Skip render-to-texture for color transforms 2015-05-28 13:35:39 -07:00
tests
Android.mk
Barrier.h
Client.cpp Bypass surface flinger permission check for calls from system. 2015-05-28 14:19:22 -07:00
Client.h
clz.h
Colorizer.h
DdmConnection.cpp SurfaceFlinger: Tweak whitespace in DdmConnection 2015-05-28 14:23:54 -07:00
DdmConnection.h
DisplayDevice.cpp
DisplayDevice.h
DispSync.cpp
DispSync.h SF: Reduce resync samples without present 2015-06-01 11:26:34 -07:00
EventControlThread.cpp
EventControlThread.h
EventThread.cpp
EventThread.h
FrameTracker.cpp
FrameTracker.h
Layer.cpp SF: Don't crop surface damage against viewport 2015-06-09 13:27:45 -07:00
Layer.h
LayerDim.cpp
LayerDim.h
main_surfaceflinger.cpp
MessageQueue.cpp
MessageQueue.h
MODULE_LICENSE_APACHE2
MonitoredProducer.cpp libgui/SurfaceFlinger: Add getConsumerName 2015-06-09 11:28:37 -07:00
MonitoredProducer.h libgui/SurfaceFlinger: Add getConsumerName 2015-06-09 11:28:37 -07:00
SurfaceFlinger.cpp sf: Add a NULL check in getDisplayConfigs 2015-06-11 12:28:41 -07:00
SurfaceFlinger.h
SurfaceFlingerConsumer.cpp
SurfaceFlingerConsumer.h
Transform.cpp
Transform.h