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 Fix surfaceflinger tests. 2015-05-28 13:33:25 -07:00
Android.mk resolved conflicts for merge of 1665c8e1 to lmp-mr1-dev-plus-aosp 2015-01-27 11:49:26 -08:00
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 Enable clang for libui/libgui/surfaceflinger 2014-12-04 17:56:17 -08:00
DisplayDevice.h surfaceflinger: fix -Wmismatched-tags warnings 2014-10-31 09:51:10 -07:00
DispSync.cpp surfaceflinger: add getDisplayStats() method 2014-09-18 17:03:20 -07:00
DispSync.h SF: Reduce resync samples without present 2015-06-01 11:26:34 -07:00
EventControlThread.cpp
EventControlThread.h
EventThread.cpp SF: Permit changing DispSync offsets at runtime 2015-04-15 13:56:28 -07:00
EventThread.h SF: Permit changing DispSync offsets at runtime 2015-04-15 13:56:28 -07:00
FrameTracker.cpp
FrameTracker.h
Layer.cpp SF: Don't crop surface damage against viewport 2015-06-09 13:27:45 -07:00
Layer.h SurfaceFlinger: Handle EGL errors more cleanly 2015-05-14 10:43:07 -07:00
LayerDim.cpp Silence warnings about unused parameters. 2014-09-09 16:53:59 -07:00
LayerDim.h Frameworks/native: Wall Werror in surfaceflinger 2014-11-13 14:18:56 -08:00
main_surfaceflinger.cpp Kill HAVE_PTHREADS. 2015-01-26 22:36:36 -08:00
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 SurfaceFlinger: Limit to 4k Layers 2015-04-30 14:29:30 -07:00
SurfaceFlingerConsumer.cpp Fix PTS handling for buffer replacement 2015-05-13 09:43:35 -07:00
SurfaceFlingerConsumer.h Fix PTS handling for buffer replacement 2015-05-13 09:43:35 -07:00
Transform.cpp Add clamp to Layer and update Transform inverse. 2014-11-21 17:05:18 -08:00
Transform.h