| Index: chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos.cc
|
| diff --git a/chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos.cc b/chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos.cc
|
| index 96e73e0f7371c34a3dbccba6e734d8e888cbd59f..369a49494216f97cfbe33ce112d0feeeaea1672d 100644
|
| --- a/chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos.cc
|
| +++ b/chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos.cc
|
| @@ -500,7 +500,8 @@ void UserCloudPolicyStoreChromeOS::LoadPolicyKey(const base::FilePath& path,
|
| return;
|
| }
|
|
|
| - const bool read_success = base::ReadFileToString(path, key, kKeySizeLimit);
|
| + const bool read_success =
|
| + base::ReadFileToStringWithMaxSize(path, key, kKeySizeLimit);
|
| // If the read was successful and the file size is 0 or if the read fails
|
| // due to file size exceeding |kKeySizeLimit|, log error.
|
| if ((read_success && key->length() == 0) ||
|
|
|