[webkit-changes] [WebKit/WebKit] 4e59b0: [WebGL] Multiple functions in WebGL should check i...

mwyrzykowski noreply at github.com
Thu Jan 9 16:10:11 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4e59b0511717a0d2558a9a65969c66746f091654
      https://github.com/WebKit/WebKit/commit/4e59b0511717a0d2558a9a65969c66746f091654
  Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
  Date:   2025-01-09 (Thu, 09 Jan 2025)

  Changed paths:
    M Source/WebKit/GPUProcess/graphics/RemoteGraphicsContextGLFunctionsGenerated.h
    M Tools/Scripts/generate-gpup-webgl

  Log Message:
  -----------
  [WebGL] Multiple functions in WebGL should check if key is valid before use
rdar://134356797
https://bugs.webkit.org/show_bug.cgi?id=278398

Reviewed by Kimmo Kinnunen.

The keys come directly from IPC, so we should check they are valid before
calling set() on the HashMap.

* Source/WebKit/GPUProcess/graphics/RemoteGraphicsContextGLFunctionsGenerated.h:
(createBuffer):
(createFramebuffer):
(createProgram):
(createRenderbuffer):
(createShader):
(createTexture):
(createVertexArray):
(createQuery):
(createSampler):
(createTransformFeedback):
(createQueryEXT):
(createExternalImage):
(createExternalSync):
* Tools/Scripts/generate-gpup-webgl:
(webkit_ipc_cpp_impl.process_return_value):

Originally-landed-as: 283286.163 at safari-7620-branch (76422ca6eb4e). rdar://141323228
Canonical link: https://commits.webkit.org/288675@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list