diff options
| author | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-17 19:26:03 +0000 |
|---|---|---|
| committer | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-17 19:26:03 +0000 |
| commit | 9e007ab4a4373f5e94657ecfa1f7e48c7ce15b05 (patch) | |
| tree | 60e00559e62da73ec1fd25845832add09c9ad87b /app/sql/connection.cc | |
| parent | 932019c5d5142284f6badffd481c48703485e66e (diff) | |
| download | chromium_src-9e007ab4a4373f5e94657ecfa1f7e48c7ce15b05.zip chromium_src-9e007ab4a4373f5e94657ecfa1f7e48c7ce15b05.tar.gz chromium_src-9e007ab4a4373f5e94657ecfa1f7e48c7ce15b05.tar.bz2 | |
[Mac/Linux] Fix WordIterator::GetWord() for UTF-16 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
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32199 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/sql/connection.cc')
0 files changed, 0 insertions, 0 deletions
