Merge "Fix potential format string vulnerability"
This commit is contained in:
commit
45aa022710
@ -617,12 +617,9 @@ Vector<Sensor> SensorService::getSensorList()
|
||||
if (canAccessSensor(sensor)) {
|
||||
accessibleSensorList.add(sensor);
|
||||
} else {
|
||||
String8 infoMessage;
|
||||
infoMessage.appendFormat(
|
||||
"Skipped sensor %s because it requires permission %s",
|
||||
sensor.getName().string(),
|
||||
sensor.getRequiredPermission().string());
|
||||
ALOGI(infoMessage.string());
|
||||
ALOGI("Skipped sensor %s because it requires permission %s",
|
||||
sensor.getName().string(),
|
||||
sensor.getRequiredPermission().string());
|
||||
}
|
||||
}
|
||||
return accessibleSensorList;
|
||||
|
Loading…
Reference in New Issue
Block a user