[webkit-changes] [WebKit/WebKit] 2ce534: [WGSL] Check for maximum recursion depth in the pa...

Tadeu Zagallo noreply at github.com
Thu Jan 25 10:14:22 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2ce534a04eef11ec5729ed0efc9da15b87c85334
      https://github.com/WebKit/WebKit/commit/2ce534a04eef11ec5729ed0efc9da15b87c85334
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2024-01-25 (Thu, 25 Jan 2024)

  Changed paths:
    M Source/WebGPU/WGSL/Parser.cpp
    M Source/WebGPU/WGSL/ParserPrivate.h

  Log Message:
  -----------
  [WGSL] Check for maximum recursion depth in the parser
https://bugs.webkit.org/show_bug.cgi?id=268078
rdar://121520385

Reviewed by Mike Wyrzykowski.

Make sure we don't stack overflow while parsing.

* Source/WebGPU/WGSL/Parser.cpp:
(WGSL::Parser<Lexer>::parseStatement):
(WGSL::Parser<Lexer>::parseUnaryExpression):
* Source/WebGPU/WGSL/ParserPrivate.h:

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




More information about the webkit-changes mailing list