DescriptionDouble-check safe-browsing database validity on update failure.
A user reported a case where their safe-browsing database was not
updating. Corrupt data in the add_chunks and sub_chunks area was
causing a 413 server response (even though the post was not
excessively large). This change explicitly checks the checksums,
causing invalid databases to be reset.
This case could happen if the user's computer crashes before a
previous update was entirely committed to disk. In most cases,
finalizing the next update would detect the corrupt data, but in this
case he error response from the server prevented the corruption from
being detected.
BUG=120219
TEST=none
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133618
Patch Set 1 #Patch Set 2 : Distinguish sources of checksum failure. #Patch Set 3 : Un/signed compare, and digest from wrong file. #Patch Set 4 : Unittest, simplify checksum-checker. #
Total comments: 3
Patch Set 5 : Check size before reading. #
Messages
Total messages: 16 (0 generated)
|