replicant-frameworks_native/services/surfaceflinger
Tatenda Chipeperekwa 23e16bb5da 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: I1a12f43b7c375b9c01998dadd5b658275c733fb2
(cherry picked from commit ac71c26e9180d9d181be5ec9e45da72d39144a8b)
2015-06-11 10:40:21 -07:00
..
DisplayHardware libgui/SurfaceFlinger: Add getConsumerName 2015-06-08 09:40:49 -07:00
Effects Don't simulate color space after correction 2014-03-10 12:43:49 -07:00
EventLog surfaceflinger: add frame duration logging 2013-07-23 17:28:47 -07:00
RenderEngine SF: Skip render-to-texture for color transforms 2015-05-27 13:32:51 -07:00
tests Fix surfaceflinger tests. 2015-05-22 13:14:57 -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 Improve memory coherence management in screenshot code [DO NOT MERGE] 2014-07-14 19:29:09 +00:00
Client.cpp Bypass surface flinger permission check for calls from system. 2015-04-10 20:26:51 -07:00
Client.h Adding render stats APIs to UiAutomation (framework native). 2014-04-10 12:32:19 -07:00
clz.h implement: "Add an ANativeWindow API for SurfaceFlinger to suggest an optimal buffer orientation" 2011-07-19 15:24:46 -07:00
Colorizer.h Add a --color option to dumpsys SurfaceFlinger 2013-04-22 21:51:28 +02:00
DdmConnection.cpp Enable clang for libui/libgui/surfaceflinger 2014-12-04 17:56:17 -08:00
DdmConnection.h add libsurfaceflinger_ddmconnection for PDK build 2012-08-31 20:08:33 -07:00
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-05-29 13:00:23 -07:00
EventControlThread.cpp SurfaceFlinger: Add EventControlThread 2013-10-15 14:31:41 -07:00
EventControlThread.h SurfaceFlinger: Add EventControlThread 2013-10-15 14:31:41 -07:00
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 Adding render stats APIs to UiAutomation (framework native). 2014-04-10 12:32:19 -07:00
FrameTracker.h Adding render stats APIs to UiAutomation (framework native). 2014-04-10 12:32:19 -07:00
Layer.cpp SF: Don't crop surface damage against viewport 2015-06-04 19:41:06 -07:00
Layer.h SurfaceFlinger: Handle EGL errors more cleanly 2015-05-14 09:48:19 -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 native frameworks: 64-bit compile issues 2014-03-12 13:12:44 -07:00
MessageQueue.h fix another bug where screenshots could end-up all black 2013-04-10 16:27:17 -07:00
MODULE_LICENSE_APACHE2 move native services under services/ 2010-07-22 15:28:19 -07:00
MonitoredProducer.cpp libgui/SurfaceFlinger: Add getConsumerName 2015-06-08 09:40:49 -07:00
MonitoredProducer.h libgui/SurfaceFlinger: Add getConsumerName 2015-06-08 09:40:49 -07:00
SurfaceFlinger.cpp sf: Add a NULL check in getDisplayConfigs 2015-06-11 10:40:21 -07:00
SurfaceFlinger.h SurfaceFlinger: Limit to 4k Layers 2015-04-30 15:10:00 -07:00
SurfaceFlingerConsumer.cpp Fix PTS handling for buffer replacement 2015-05-12 13:10:17 -07:00
SurfaceFlingerConsumer.h Fix PTS handling for buffer replacement 2015-05-12 13:10:17 -07:00
Transform.cpp Add clamp to Layer and update Transform inverse. 2014-11-21 17:05:18 -08:00
Transform.h color blindness enhancement 2013-09-04 22:11:15 -07:00