Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Issue 73078: Fixing a crash which could occur when a string containing multibyte characters is p... (Closed)

Created:
11 years, 8 months ago by Yusuke (unused)
Modified:
9 years, 7 months ago
Reviewers:
Dean McNamee
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fixing a crash which could occur when a string containing multibyte characters is passed to AutocompleteEditViewGtk::EmphasizeURLComponents(). The AutocompleteInput::Parse works in a wstring, so the parts indices are also for a wstring. Convert these to utf8 byte indices. BUG=10539

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -5 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc View 1 2 4 chunks +14 lines, -5 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Yusuke (unused)
11 years, 8 months ago (2009-04-15 10:08:42 UTC) #1
Dean McNamee
On 2009/04/15 10:08:42, yusukes wrote: > I think this isn't actually completely correct, it's sort ...
11 years, 8 months ago (2009-04-15 10:15:03 UTC) #2
Dean McNamee
http://codereview.chromium.org/73078/diff/1/2 File chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc (left): http://codereview.chromium.org/73078/diff/1/2#oldcode520 Line 520: parts.host.begin); Make this should be more like std::wstring ...
11 years, 8 months ago (2009-04-15 10:17:33 UTC) #3
Dean McNamee
http://codereview.chromium.org/73078/diff/5/1003 File chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc (right): http://codereview.chromium.org/73078/diff/5/1003#newcode512 Line 512: const std::wstring& text = GetText(); GetText() returns a ...
11 years, 8 months ago (2009-04-15 10:58:13 UTC) #4
Yusuke (unused)
Thanks for the review! Fixed all. http://codereview.chromium.org/73078/diff/5/1003 File chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc (right): http://codereview.chromium.org/73078/diff/5/1003#newcode512 Line 512: const std::wstring& ...
11 years, 8 months ago (2009-04-15 11:13:50 UTC) #5
Dean McNamee
I updated the description and will commit. LG, thanks!
11 years, 8 months ago (2009-04-15 11:19:52 UTC) #6
Dean McNamee
11 years, 8 months ago (2009-04-15 14:17:26 UTC) #7
Committed in 13741, sorry, I didn't properly attribute the patch to you, since I
just reused the Rietveld description :\

Powered by Google App Engine
This is Rietveld 408576698