update_engine: Limit bsdiff to 200 MiB files.
bsdiff and bspatch require a lot of RAM and time to run over very big
files. In released ChromeOS images, the biggest file is chrome with
a size of about 130 MiB in the worst case (link). Nevertheless,
ChromiumOS builds for ASan have much bigger files due to the memory
instrumentation.
This patch limit the usage of bsdiff/bspatch to files under 200 MiB,
something that should not affect any released board.
BUG=chromium:329248
TEST=cbuildbot amd64-generic-asan enabling the full vm_test
Change-Id: I24b6c9e56525858dab3758af8eddfe3acdf12e75
Reviewed-on: https://chromium-review.googlesource.com/219201
Tested-by: Alex Deymo <deymo@chromium.org>
Reviewed-by: Don Garrett <dgarrett@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
1 file changed