Pass file_length to UpdateArchiveAnalyzer
Since it's not possible to truncate a file from within a sandbox, we
need to track the file size independently, and only consider the
first |file_length| bytes of the file.
TESTED=Manually, by printing the hashes on chrome://safe-browsing, and
verifying they are correct. It's currently impossible to test this
automatically, since our unit tests do not run in the sandbox.
Reviewed-by: Satoru Takabayashi <email@example.com>
Reviewed-by: Varun Khaneja <firstname.lastname@example.org>
Commit-Queue: Daniel Rubery <email@example.com>
1 file changed