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

Issue 8785021: Be Careful when Accessing Map (Closed)

Created:
9 years ago by mrossetti
Modified:
9 years ago
Reviewers:
Ryan Sleevi
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Be Careful when Accessing Map Do not assume that the history_info_map_ will always contain entries for keys. BUG=106192 TEST=With a big History database, type a single 'w' and verify that a crash does not occur. 'w' is chosen since it occurs in the bulk of URLs ('www'). Other common characters to test singly are 'c', 'h', 'm', 'o', 'p' and 't'. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112910

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M chrome/browser/history/in_memory_url_index.cc View 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Ryan Sleevi
lgtm
9 years ago (2011-12-03 22:32:50 UTC) #1
mrossetti
9 years ago (2011-12-03 22:33:51 UTC) #2
On Windows we're getting crashes on single character omnibox entries (see bug)
as the map entry in question is disappearing, possibly due to the expiry. This
change will eliminate access to stale map entries.

Powered by Google App Engine
This is Rietveld 408576698