Changeset 200046 in webkit


Ignore:
Timestamp:
Apr 25, 2016 1:48:04 PM (8 years ago)
Author:
berto@igalia.com
Message:

[GTK] Crashes if DISPLAY is unset
https://bugs.webkit.org/show_bug.cgi?id=156972

Reviewed by Carlos Garcia Campos.

If DISPLAY is unset then m_display will be NULL, crashing WebKit
when XCloseDisplay is called in the PlatformDisplayX11 destructor.

  • platform/graphics/x11/PlatformDisplayX11.cpp:

(WebCore::PlatformDisplayX11::~PlatformDisplayX11):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r200044 r200046  
     12016-04-25  Alberto Garcia  <berto@igalia.com>
     2
     3        [GTK] Crashes if DISPLAY is unset
     4        https://bugs.webkit.org/show_bug.cgi?id=156972
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        If DISPLAY is unset then m_display will be NULL, crashing WebKit
     9        when XCloseDisplay is called in the PlatformDisplayX11 destructor.
     10
     11        * platform/graphics/x11/PlatformDisplayX11.cpp:
     12        (WebCore::PlatformDisplayX11::~PlatformDisplayX11):
     13
    1142016-04-25  Ryan Haddad  <ryanhaddad@apple.com>
    215
  • trunk/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp

    r183868 r200046  
    3838PlatformDisplayX11::PlatformDisplayX11()
    3939    : m_display(XOpenDisplay(nullptr))
    40     , m_ownedDisplay(true)
    4140{
     41    m_ownedDisplay = m_display != nullptr;
    4242}
    4343
Note: See TracChangeset for help on using the changeset viewer.