replicant-frameworks_native/services
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
..
batteryservice BatteryProperty: Add property ENERGY_COUNTER and 64-bit integer properties 2014-05-16 03:05:11 +00:00
inputflinger Improve ANR diagnostics. 2014-10-10 19:09:39 -07:00
powermanager Make IPowerManager native conform to .aidl for oneway 2014-09-05 17:12:24 -07:00
sensorservice Add version number to SensorService dump output. 2014-10-19 20:30:58 +00:00
surfaceflinger sf: Add a NULL check in getDisplayConfigs 2014-11-03 12:16:18 -08:00