Chromium Code Reviews
DescriptionFix BOM handling in TextResourceDecoder on partial data
TextResourceDecoder::decode() fails to handle BOM check failure when
available chunk of the data is only few bytes.
Also, TextResourceDecoder::checkForBOM() wrongly detects little endian
UTF16 BOM as little endian UTF32 when avaibale data is only few bytes.
This CL changes decode() to defer the decoding on failure on BOM
detection, and fixes checkForBOM() for ambiguous BOM case.
BUG=634935
Committed: https://crrev.com/c792d1ca228e3fd8fc254c9a8f3a51e5e5d76832
Cr-Commit-Position: refs/heads/master@{#410283}
Patch Set 1 #
Total comments: 2
Patch Set 2 : win bot fix #Patch Set 3 : +comment #
Messages
Total messages: 19 (13 generated)
|
|||||||||||||||||||||||||||||||||||||