⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 268915 in webkit


Ignore:
Timestamp:
Oct 23, 2020, 1:26:04 AM (6 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r268000 - [GTK][X11] WebProcess crash in WebCore::GLContextGLX::createPbufferContext() with NVidia proprietary drivers
https://bugs.webkit.org/show_bug.cgi?id=217323

Reviewed by Adrian Perez de Castro.

The returnedElements variable might remain uninitialized if the glXChooseFBConfig()
function call fails, leading to execution of the wrong code branch later.

  • platform/graphics/glx/GLContextGLX.cpp:

(WebCore::GLContextGLX::createPbufferContext): Initialized the returnedElements variable.

Location:
releases/WebKitGTK/webkit-2.30/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.30/Source/WebCore/ChangeLog

    r268913 r268915  
     12020-10-05  Enrique Ocaña González  <eocanha@igalia.com>
     2
     3        [GTK][X11] WebProcess crash in WebCore::GLContextGLX::createPbufferContext() with NVidia proprietary drivers
     4        https://bugs.webkit.org/show_bug.cgi?id=217323
     5
     6        Reviewed by Adrian Perez de Castro.
     7
     8        The returnedElements variable might remain uninitialized if the glXChooseFBConfig()
     9        function call fails, leading to execution of the wrong code branch later.
     10
     11        * platform/graphics/glx/GLContextGLX.cpp:
     12        (WebCore::GLContextGLX::createPbufferContext): Initialized the returnedElements variable.
     13
    1142020-10-15  Chris Lord  <clord@igalia.com>
    215
  • releases/WebKitGTK/webkit-2.30/Source/WebCore/platform/graphics/glx/GLContextGLX.cpp

    r254064 r268915  
    222222    };
    223223
    224     int returnedElements;
     224    int returnedElements = 0;
    225225    Display* display = downcast<PlatformDisplayX11>(platformDisplay).native();
    226226    XUniquePtr<GLXFBConfig> configs(glXChooseFBConfig(display, 0, fbConfigAttributes, &returnedElements));
Note: See TracChangeset for help on using the changeset viewer.