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

Issue 23861005: Fix NULL deref in HistoryBackend::ExpireHistoryBetween. (Closed)

Created:
7 years, 3 months ago by grt (UTC plus 2)
Modified:
7 years, 3 months ago
Reviewers:
brettw
CC:
chromium-reviews, browser-components-watch_chromium.org
Visibility:
Public.

Description

Fix NULL deref in HistoryBackend::ExpireHistoryBetween. We're seeing crashes in history::VisitDatabase::GetStartDate coming from HistoryBackend::ExpireHistoryBetween where db_ is NULL. This change mitigates this by two avenues: first_recorded_time_ is cleared when the DB is closed (so that no other code that checks it blows up), and GetStartDate is no longer called by ExpireHistoryBetween when db_ is NULL. Evidence suggests that this bug is responsible for browser crashes at shutdown that result in a corrupt profile dialog on the next launch. BUG=275916, 273832, 165282, 107613, 36588 R=brettw@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221802

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -13 lines) Patch
M chrome/browser/history/history_backend.cc View 2 chunks +16 lines, -13 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
grt (UTC plus 2)
Hi Brett. Quick review for you that fixes a longstanding shutdown crash. The ios_dbg_simulator trybot ...
7 years, 3 months ago (2013-09-05 12:24:43 UTC) #1
brettw
LGTM, thanks for tracking this down.
7 years, 3 months ago (2013-09-06 17:45:11 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grt@chromium.org/23861005/1
7 years, 3 months ago (2013-09-06 17:45:54 UTC) #3
commit-bot: I haz the power
7 years, 3 months ago (2013-09-06 22:35:17 UTC) #4
Message was sent while issue was closed.
Change committed as 221802

Powered by Google App Engine
This is Rietveld 408576698