Changeset 206234 in webkit


Ignore:
Timestamp:
Sep 21, 2016 1:53:49 PM (8 years ago)
Author:
pvollan@apple.com
Message:

[Win] Null pointer crash under WebCore::CACFLayerTreeHost::create().
https://bugs.webkit.org/show_bug.cgi?id=162266
<rdar://problem/28345073>

Reviewed by Brent Fulgham.

Add null pointer check.

  • platform/graphics/ca/win/CACFLayerTreeHost.cpp:

(WebCore::CACFLayerTreeHost::create):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r206233 r206234  
     12016-09-21  Per Arne Vollan  <pvollan@apple.com>
     2
     3        [Win] Null pointer crash under WebCore::CACFLayerTreeHost::create().
     4        https://bugs.webkit.org/show_bug.cgi?id=162266
     5        <rdar://problem/28345073>
     6
     7        Reviewed by Brent Fulgham.
     8
     9        Add null pointer check.
     10
     11        * platform/graphics/ca/win/CACFLayerTreeHost.cpp:
     12        (WebCore::CACFLayerTreeHost::create):
     13
    1142016-09-21  Chris Dumez  <cdumez@apple.com>
    215
  • trunk/Source/WebCore/platform/graphics/ca/win/CACFLayerTreeHost.cpp

    r200895 r206234  
    3232#include "FrameView.h"
    3333#include "LayerChangesFlusher.h"
     34#include "Logging.h"
    3435#include "MainFrame.h"
    3536#include "PlatformCALayerWin.h"
     
    118119        return nullptr;
    119120    RefPtr<CACFLayerTreeHost> host = WKCACFViewLayerTreeHost::create();
     121    if (!host) {
     122        LOG_ERROR("Failed to create layer tree host for accelerated compositing.");
     123        return nullptr;
     124    }
    120125    host->initialize();
    121126    return host.release();
Note: See TracChangeset for help on using the changeset viewer.