commit | b09b083fef7460e5b407b9b0ea4b38dc77ccce42 | [log] [tgz] |
---|---|---|
author | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | Wed Mar 28 04:54:44 2012 |
committer | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | Wed Mar 28 04:54:44 2012 |
tree | 5142d044b6632f15a88379af5b971aedecdc2f68 | |
parent | 6d26d7c67d047a0aee3c42f332987906901d87dc [diff] |
Fix 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. Review URL: http://codereview.chromium.org/9860035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129373 0039d316-1c4b-4281-b951-d872f2087c98