Bug 52796 - [Qt][WK2] Null ptr deref in UI process after web process has crashed
Summary: [Qt][WK2] Null ptr deref in UI process after web process has crashed
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Kimmo Kinnunen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-20 03:42 PST by Kimmo Kinnunen
Modified: 2011-01-20 10:09 PST (History)
1 user (show)

See Also:


Attachments
Patch to fix the null pointer deref (5.33 KB, patch)
2011-01-20 05:23 PST, Kimmo Kinnunen
no flags Details | Formatted Diff | Diff
Fix 2, contains initialization of the backingstoretype private var (5.54 KB, patch)
2011-01-20 06:12 PST, Kimmo Kinnunen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kimmo Kinnunen 2011-01-20 03:42:47 PST
UI process creates a redundant drawing area during initialization. This is only used to pass drawing area type until QWKPagePrivate::createDrawingArea() is called.

Side-effect of this is that when web process dies and ui process re-initializes the connection, the new createDrawingArea() call refers to invalid ptr and thus ui process crashes. 

Introduced in:
https://bugs.webkit.org/show_bug.cgi?id=52184
Comment 1 Kimmo Kinnunen 2011-01-20 05:23:37 PST
Created attachment 79585 [details]
Patch to fix the null pointer deref
Comment 2 Kimmo Kinnunen 2011-01-20 06:12:45 PST
Created attachment 79591 [details]
Fix 2, contains initialization of the backingstoretype private var
Comment 3 Andreas Kling 2011-01-20 06:17:15 PST
Comment on attachment 79591 [details]
Fix 2, contains initialization of the backingstoretype private var

D'oh. r=me
Comment 4 WebKit Commit Bot 2011-01-20 10:08:56 PST
Comment on attachment 79591 [details]
Fix 2, contains initialization of the backingstoretype private var

Clearing flags on attachment: 79591

Committed r76262: <http://trac.webkit.org/changeset/76262>
Comment 5 WebKit Commit Bot 2011-01-20 10:09:02 PST
All reviewed patches have been landed.  Closing bug.