Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • angle
  • Repository

Switch branch/tag
  • angle
  • src
  • tests
  • preprocessor_tests
  • comment_test.cpp
Find file
BlameHistoryPermalink
  • Olli Etuaho's avatar
    Prevent stack overflow in macro expansion · f1cf5e63
    Olli Etuaho authored Nov 22, 2016
    Add a configurable limit for how many nested MacroExpander objects can
    be created in the preprocessor, so that stack overflow can be
    prevented in case of malicious shaders. By default the limit is set to
    1000. In unit tests the limit is set lower to make the test run
    faster.
    
    Includes refactoring of most of the preprocessor tests so that they
    use utility functions provided by the test class instead of repeating
    the same code for initializing the preprocessor.
    
    BUG=angleproject:1600
    TEST=angle_unittests
    
    Change-Id: I23b5140d9f2dc52df96111650db63150f7238494
    Reviewed-on: https://chromium-review.googlesource.com/413986
    Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
    Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
    f1cf5e63
comment_test.cpp 1.92 KB
EditWeb IDE
×

Replace comment_test.cpp

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.