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