[webkit-changes] [WebKit/WebKit] 40e738: Fix use-after-move in WebCore::WebGLRenderingConte...

Commit Queue noreply at github.com
Sat Jan 20 16:44:59 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 40e738bff4876ab84ab430d044eec61aab8a7e4b
      https://github.com/WebKit/WebKit/commit/40e738bff4876ab84ab430d044eec61aab8a7e4b
  Author: David Kilzer <ddkilzer at apple.com>
  Date:   2024-01-20 (Sat, 20 Jan 2024)

  Changed paths:
    M Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp

  Log Message:
  -----------
  Fix use-after-move in WebCore::WebGLRenderingContextBase constructor
https://bugs.webkit.org/show_bug.cgi?id=267818
<rdar://121317766>

Reviewed by Chris Dumez.

* Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp:
(WebCore::WebGLRenderingContextBase::WebGLRenderingContextBase):
- Use m_attributes to initialize m_creationAttributes since `attributes`
  was moved from to initialize m_attributes.

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




More information about the webkit-changes mailing list