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

See Also:


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

Note You need to log in before you can comment on or make changes to this bug.
Description zalan 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 zalan 2008-12-26 06:18:09 PST
Created attachment 26255 [details]
check if database thread exists
Comment 2 Darin Adler 2008-12-26 09:30:52 PST
Comment on attachment 26255 [details]
check if database thread exists

r=me
Comment 3 Antti Koivisto 2008-12-26 13:20:07 PST
Sending        WebCore/ChangeLog
Sending        WebCore/storage/Database.cpp
Transmitting file data ..
Committed revision 39484.