Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e4606593e14d18a3ee7347b7e4b8196ac9a3404b
      
https://github.com/WebKit/WebKit/commit/e4606593e14d18a3ee7347b7e4b8196ac9a3404b
  Author: David Kilzer <[email protected]>
  Date:   2025-11-18 (Tue, 18 Nov 2025)

  Changed paths:
    M Source/ThirdParty/ANGLE/src/compiler/preprocessor/preprocessor.l
    M 
Source/ThirdParty/ANGLE/src/compiler/preprocessor/preprocessor_lex_autogen.cpp
    M Source/ThirdParty/ANGLE/src/compiler/translator/glslang.l
    M Source/ThirdParty/ANGLE/src/compiler/translator/glslang_lex_autogen.cpp

  Log Message:
  -----------
  [ANGLE] Fix untyped malloc calls
<https://bugs.webkit.org/show_bug.cgi?id=302596>
<rdar://164747472>

Reviewed by Geoffrey Garen.

Replace yyalloc/yyrealloc/yyfree functions with macros that inline calls
to malloc/realloc/free.  To make this work we must use macros to rename
yyalloc/yyrealloc/yyfree to different names since
"%options noyyalloc noyyreallloc noyyfree" only disables output of the
implementation, not the function declarations.  Then we undef the rename
macros and provide macros that inline the calls to the
malloc/realloc/free functions.

* Source/ThirdParty/ANGLE/src/compiler/preprocessor/preprocessor.l:
(yyalloc): Add
(yyrealloc): Add.
(yyfree): Add.
- Define rename macros, undef the rename macros, then define the macros
  that inline calls to malloc/realloc/free.
* 
Source/ThirdParty/ANGLE/src/compiler/preprocessor/preprocessor_lex_autogen.cpp:
(yyalloc): Delete.
(yyrealloc): Delete.
(yyfree): Delete.
- Manually update the generated source file based on a locally generated
  file (which introduced too many whitespace changes to check in).
* Source/ThirdParty/ANGLE/src/compiler/translator/glslang.l:
(yyalloc): Add
(yyrealloc): Add.
(yyfree): Add.
- Define rename macros, undef the rename macros, then define the macros
  that inline calls to malloc/realloc/free.
* Source/ThirdParty/ANGLE/src/compiler/translator/glslang_lex_autogen.cpp:
(yyalloc): Delete.
(yyrealloc): Delete.
(yyfree): Delete.
- Manually update the generated source file based on a locally generated
  file (which introduced too many whitespace changes to check in).

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



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

Reply via email to