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

Issue 328037: Fix browser crash on startup. (Closed)

Created:
11 years, 1 month ago by ukai
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fix browser crash on startup. > chrome.dll!`anonymous namespace'::OnNoMemory() Line 126 C++ chrome.dll!_invalid_parameter_noinfo() Line 99 + 0xc bytes C++ chrome.dll!RefCountedBytes::front() Line 67 + 0x1b bytes C++ chrome.dll!BookmarkModel::OnFavIconDataAvailable(int handle=8, bool know_favicon=true, scoped_refptr<RefCountedBytes> data={...}, bool expired=true, GURL icon_url={...}) Line 652 + 0x2b bytes C++ It seems RefCountedBytes data has no data. If data size is 0, accessing front of data would cause crash. By checking its size, fixes this crash. BUG=25803 TEST=no crash on startup Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30171

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M chrome/browser/bookmarks/bookmark_model.cc View 1 chunk +1 line, -1 line 1 comment Download

Messages

Total messages: 5 (0 generated)
ukai
11 years, 1 month ago (2009-10-27 05:18:35 UTC) #1
tkent
LGTM
11 years, 1 month ago (2009-10-27 05:39:07 UTC) #2
ukai
11 years, 1 month ago (2009-10-27 05:39:32 UTC) #3
sky
There are a couple of other places in code that have the same pattern. Those ...
11 years, 1 month ago (2009-10-27 16:07:03 UTC) #4
sky
11 years, 1 month ago (2009-10-27 16:10:11 UTC) #5
Looks like Brett fixed the source of the problem. See
http://codereview.chromium.org/333048 .

Powered by Google App Engine
This is Rietveld 408576698