[all-commits] [llvm/llvm-project] c67104: Check for resource exhaustion when recursively par...

Aaron Ballman via All-commits all-commits at lists.llvm.org
Thu May 12 10:20:52 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c671041720347c9deb35b1165ee6b6bb88abf07a
      https://github.com/llvm/llvm-project/commit/c671041720347c9deb35b1165ee6b6bb88abf07a
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2022-05-12 (Thu, 12 May 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Parse/ParseDecl.cpp

  Log Message:
  -----------
  Check for resource exhaustion when recursively parsing declarators

With sufficiently tortured code, it's possible to cause a stack
overflow when parsing declarators. Thus, we now check for resource
exhaustion when recursively parsing declarators so that we can at least
warn the user we're about to crash before we actually crash.

Fixes #51642

Differential Revision: https://reviews.llvm.org/D124915




More information about the All-commits mailing list