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 <firstname.lastname@example.org>
Reviewed-by: Varun Khaneja <email@example.com>
Commit-Queue: Daniel Rubery <firstname.lastname@example.org>
1 file changed