Commit b9403e8f authored by Sorin Jianu's avatar Sorin Jianu Committed by Commit Bot

Increase the size limit for updater.runtime_deps from 8K to 16KB.

The current limit is too low and the component build fails
parsing the file when the updater is invoked with
--install --install-from-out-dir

Bug: 1140730
Change-Id: I297d1e1ddf1435faa9304a7084c84a7170227b6b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2488714Reviewed-by: default avatarS. Ganesh <ganesh@chromium.org>
Commit-Queue: Sorin Jianu <sorin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#819155}
parent 57997cb8
...@@ -76,7 +76,7 @@ base::string16 GetComTypeLibRegistryPath(REFIID iid) { ...@@ -76,7 +76,7 @@ base::string16 GetComTypeLibRegistryPath(REFIID iid) {
} }
std::vector<base::FilePath> ParseFilesFromDeps(const base::FilePath& deps) { std::vector<base::FilePath> ParseFilesFromDeps(const base::FilePath& deps) {
constexpr size_t kDepsFileSizeMax = 0x2000; // 8KB. constexpr size_t kDepsFileSizeMax = 0x4000; // 16KB.
std::string contents; std::string contents;
if (!base::ReadFileToStringWithMaxSize(deps, &contents, kDepsFileSizeMax)) if (!base::ReadFileToStringWithMaxSize(deps, &contents, kDepsFileSizeMax))
return {}; return {};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment