[webkit-changes] [WebKit/WebKit] 803d9c: [GTK] Avoid crash in AcceleratedSurfaceDMABuf::Ren...

Oriol Brufau noreply at github.com
Thu Nov 16 22:53:24 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 803d9c8905c30101c00d0641c20ec92618fb0b94
      https://github.com/WebKit/WebKit/commit/803d9c8905c30101c00d0641c20ec92618fb0b94
  Author: Oriol Brufau <obrufau at igalia.com>
  Date:   2023-11-16 (Thu, 16 Nov 2023)

  Changed paths:
    M Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp

  Log Message:
  -----------
  [GTK] Avoid crash in AcceleratedSurfaceDMABuf::RenderTargetEGLImage::create()
https://bugs.webkit.org/show_bug.cgi?id=264880

Reviewed by Carlos Garcia Campos.

Check that dmabufFormat.modifiers is not empty before trying to read
dmabufFormat.modifiers[0].

* Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp:
(WebKit::AcceleratedSurfaceDMABuf::RenderTargetEGLImage::create):

Canonical link: https://commits.webkit.org/270866@main




More information about the webkit-changes mailing list