replicant-frameworks_native/services/surfaceflinger
Naseer Ahmed 7aa0c47e42 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
Acked-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2014-11-03 12:16:18 -08:00
..
DisplayHardware surfaceflinger: fix -Wunused-parameter warning 2014-10-31 09:52:42 -07:00
Effects Don't simulate color space after correction 2014-03-10 12:43:49 -07:00
EventLog
RenderEngine Add glFlush in surfaceflinger screenshot code. 2014-10-23 16:25:17 -07:00
tests
Android.mk Don't run large virtual displays through HWC 2014-10-28 16:01:47 -07:00
Barrier.h Improve memory coherence management in screenshot code [DO NOT MERGE] 2014-07-14 19:29:09 +00:00
Client.cpp Adding render stats APIs to UiAutomation (framework native). 2014-04-10 12:32:19 -07:00
Client.h Adding render stats APIs to UiAutomation (framework native). 2014-04-10 12:32:19 -07:00
clz.h
Colorizer.h
DdmConnection.cpp Remove dependencies on runtime_libdvm and libdvm.so in general 2014-05-29 09:39:26 -07:00
DdmConnection.h
DisplayDevice.cpp Add rotation to surfaceflingers screen cap. 2014-09-09 03:51:16 +00: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 surfaceflinger: add getDisplayStats() method 2014-09-18 17:03:20 -07:00
EventControlThread.cpp
EventControlThread.h
EventThread.cpp SurfaceFlinger: send VSYNC power hints to IPowerManager 2014-06-18 18:51:24 -07:00
EventThread.h SurfaceFlinger: send VSYNC power hints to IPowerManager 2014-06-18 18:51:24 -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 Fixed discrepancy between crop and frame transparencies. 2014-10-03 19:02:30 +00:00
Layer.h Fixed discrepancy between crop and frame transparencies. 2014-10-03 19:02:30 +00:00
LayerDim.cpp
LayerDim.h surfaceflinger: fix -Woverloaded-virtual warning 2014-10-31 09:52:08 -07:00
main_surfaceflinger.cpp DO NOT MERGE Add "dumpsys SurfaceFlinger --dispsync" 2014-05-09 10:49:11 -07:00
MessageQueue.cpp native frameworks: 64-bit compile issues 2014-03-12 13:12:44 -07:00
MessageQueue.h
MODULE_LICENSE_APACHE2
MonitoredProducer.cpp BufferQueue: Add allocateBuffers method 2014-06-20 13:13:57 -07:00
MonitoredProducer.h BufferQueue: Add allocateBuffers method 2014-06-20 13:13:57 -07:00
sigchain_proxy.cpp Link sigchain to surfaceflinger main executable 2014-10-16 11:43:19 -07:00
SurfaceFlinger.cpp sf: Add a NULL check in getDisplayConfigs 2014-11-03 12:16:18 -08:00
SurfaceFlinger.h When eglMakeCurrent fails we need to fix the egl state. 2014-10-01 14:50:58 -07:00
SurfaceFlingerConsumer.cpp Improve SurfaceFlinger PTS estimation 2014-05-02 10:56:54 -07:00
SurfaceFlingerConsumer.h GLConsumer: Stop using default constructor params 2014-06-24 13:09:19 -07:00
Transform.cpp
Transform.h