Bug 38695

Summary: Missing null check in RenderIFrame::calcWidth() and RenderIFrame::calcHeight()
Product: WebKit Reporter: Ada Chan <adachan>
Component: WebCore Misc.Assignee: Ada Chan <adachan>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, ddkilzer, eric, webkit.review.bot, zwarich
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch ddkilzer: review+

Ada Chan
Reported 2010-05-06 14:47:59 PDT
In RenderIFrame::calcWidth() and RenderIFrame::calcHeight(), we should null check the result from widget() before accessing it. There's no guarantee that it's not null, and I've seen inconsistently reproducible crashes due to that.
Attachments
Patch (1.49 KB, patch)
2010-05-06 14:52 PDT, Ada Chan
ddkilzer: review+
Ada Chan
Comment 1 2010-05-06 14:52:01 PDT
David Kilzer (:ddkilzer)
Comment 2 2010-05-06 15:36:59 PDT
Comment on attachment 55302 [details] Patch r=me
Ada Chan
Comment 3 2010-05-06 15:53:50 PDT
Note You need to log in before you can comment on or make changes to this bug.