Bug 66808

Summary: [chromium] Fix potential nullptr deref in TiledLayerChromium::pushPropertiesTo
Product: WebKit Reporter: Adrienne Walker <enne>
Component: New BugsAssignee: Adrienne Walker <enne>
Status: RESOLVED FIXED    
Severity: Normal CC: enne, jamesr
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch jamesr: review+

Adrienne Walker
Reported 2011-08-23 14:00:52 PDT
[chromium] Fix potential nullptr deref in TiledLayerChromium::pushPropertiesTo
Attachments
Patch (2.33 KB, patch)
2011-08-23 14:12 PDT, Adrienne Walker
jamesr: review+
Adrienne Walker
Comment 1 2011-08-23 14:12:21 PDT
James Robinson
Comment 2 2011-08-23 14:15:17 PDT
Comment on attachment 104913 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=104913&action=review > Source/WebCore/platform/graphics/chromium/cc/CCTiledLayerImpl.cpp:99 > + if (m_skipsDraw || !m_tiler || m_tiler->isEmpty() || layerRect.isEmpty() || !layerRenderer()) this is redundant isn't it?
Adrienne Walker
Comment 3 2011-08-23 14:23:23 PDT
(In reply to comment #2) > (From update of attachment 104913 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=104913&action=review > > > Source/WebCore/platform/graphics/chromium/cc/CCTiledLayerImpl.cpp:99 > > + if (m_skipsDraw || !m_tiler || m_tiler->isEmpty() || layerRect.isEmpty() || !layerRenderer()) > > this is redundant isn't it? At the moment, yes, but it's only because of the convention of the caller and it's not an internal guarantee. I think I was just looking at "Ok, what might fall down now that the tiler might be null on the impl side". Also, it looks like m_skipsDraw isn't initialized. :(
Adrienne Walker
Comment 4 2011-08-23 15:09:36 PDT
Note You need to log in before you can comment on or make changes to this bug.