Bug 22999 - Database::openAndVerifyVersion() crashes on NULL, if database thread creating failed
: Database::openAndVerifyVersion() crashes on NULL, if database thread creating...
Status: RESOLVED FIXED
: WebKit
WebCore Misc.
: 528+ (Nightly build)
: Macintosh Mac OS X 10.5
: P2 Normal
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2008-12-26 06:10 PST by
Modified: 2008-12-26 13:20 PST (History)


Attachments
check if database thread exists (1.98 KB, patch)
2008-12-26 06:18 PST, Zalan Bujtas
darin: review+
Review Patch | Details | Formatted Diff | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2008-12-26 06:10:45 PST
Database::openDatabase() calls Database::openAndVerifyVersion() which crashes on m_document->databaseThread()->scheduleImmediateTask(task);, if databaseThread() returns NULL.

some of the Database:: functions already have if (m_document->databaseThread()) to check it.
------- Comment #1 From 2008-12-26 06:18:09 PST -------
Created an attachment (id=26255) [details]
check if database thread exists
------- Comment #2 From 2008-12-26 09:30:52 PST -------
(From update of attachment 26255 [details])
r=me
------- Comment #3 From 2008-12-26 13:20:07 PST -------
Sending        WebCore/ChangeLog
Sending        WebCore/storage/Database.cpp
Transmitting file data ..
Committed revision 39484.