From 579b94ae61d123dfb06caa2499be4ef6879cbf1f Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Thu, 13 Feb 2025 21:06:07 -0800 Subject: merge revision(s) 931a870606f4e286a1c7bacf022940994f3c431b: [Backport #21044] [ruby/prism] Increase value of PRISM_DEPTH_MAXIMUM to 10000 The previous value of 1_000 was added with a reference to the Bison parser[^1], but the value of YYMAXDEPTH in the Bison docs is 10_000, not 1_000. [^1]: https://www.gnu.org/software/bison/manual/html_node/Memory-Management.html Fixes [Bug #21044] https://github.com/ruby/prism/commit/e098533ab4 Co-authored-by: Nony Dutton --- prism/defines.h | 2 +- version.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/prism/defines.h b/prism/defines.h index f7bb2120c4..0e67ff5221 100644 --- a/prism/defines.h +++ b/prism/defines.h @@ -31,7 +31,7 @@ * specifying a maximum depth to which we are allowed to recurse. */ #ifndef PRISM_DEPTH_MAXIMUM - #define PRISM_DEPTH_MAXIMUM 1000 + #define PRISM_DEPTH_MAXIMUM 10000 #endif /** diff --git a/version.h b/version.h index 1b55a38786..37ee535473 100644 --- a/version.h +++ b/version.h @@ -11,7 +11,7 @@ # define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR #define RUBY_VERSION_TEENY 1 #define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR -#define RUBY_PATCHLEVEL 12 +#define RUBY_PATCHLEVEL 13 #include "ruby/version.h" #include "ruby/internal/abi.h" -- cgit v1.2.3