diff options
author | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-19 19:07:20 +0000 |
---|---|---|
committer | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-19 19:07:20 +0000 |
commit | 896f8820356938ebf722c036610347d504c1c8d0 (patch) | |
tree | 72a296654c828d5e80ff06a58c09893c4a4df129 /base/atomic_flag.cc | |
parent | 4961f1e508749fd6e6b8a8376ee047c57468b81b (diff) | |
download | chromium_src-896f8820356938ebf722c036610347d504c1c8d0.zip chromium_src-896f8820356938ebf722c036610347d504c1c8d0.tar.gz chromium_src-896f8820356938ebf722c036610347d504c1c8d0.tar.bz2 |
Merge 32199 - [Mac/Linux] Fix WordIterator::GetWord() for UTF16 surrogate pairs.
For systems where !defined(WCHART_T_IS_UTF16), WordIterator transforms
the input into UChar data. But GetWord() was using the resulting
offsets as indices into the original string, so it could return
incorrect data and/or attempt to index off the end of the input. This
changes GetWord() to do do the inverse conversion from Init() for
those systems.
BUG=27698
TEST=See bug.
Review URL: http://codereview.chromium.org/399010
TBR=shess@chromium.org
Review URL: http://codereview.chromium.org/414001
git-svn-id: svn://svn.chromium.org/chrome/branches/249/src@32527 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/atomic_flag.cc')
0 files changed, 0 insertions, 0 deletions