DescriptionFix handling of Unicode BOMs in JSONReader.
Because |char| is signed, the upper bits of the BOM bytes were getting
interpreted as the sign bit. Cast to |uint8| to preserve them for proper
comparison.
BUG=119975
TEST=Try to install the Gmail extension. Do not get JSON error when unpacking.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=129373
Patch Set 1 #Patch Set 2 : Test with a real file #Patch Set 3 : I hate Windows #Patch Set 4 : Merge origin/master #
Messages
Total messages: 5 (0 generated)
|