[webkit-changes] [WebKit/WebKit] d9fd5b: [WGSL] Validate structs with duplicate members

Tadeu Zagallo noreply at github.com
Wed Aug 16 03:22:45 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d9fd5b430722d5b90c4bb544496ed7757af51fff
      https://github.com/WebKit/WebKit/commit/d9fd5b430722d5b90c4bb544496ed7757af51fff
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-08-16 (Wed, 16 Aug 2023)

  Changed paths:
    M Source/WebGPU/WGSL/Parser.cpp
    A Source/WebGPU/WGSL/tests/invalid/struct-with-duplicate-member.wgsl

  Log Message:
  -----------
  [WGSL] Validate structs with duplicate members
https://bugs.webkit.org/show_bug.cgi?id=260204
rdar://113909137

Reviewed by Dan Glastonbury and Myles C. Maxfield.

Report an error at parsing time instead of crashing with an assertion in the type checker.

* Source/WebGPU/WGSL/Parser.cpp:
(WGSL::Parser<Lexer>::parseStructure):

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




More information about the webkit-changes mailing list